Back to index

lshw  02.16
Functions
abi.h File Reference
#include "hw.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool scan_abi (hwNode &n)

Function Documentation

bool scan_abi ( hwNode n)

Definition at line 19 of file abi.cc.

{
  // are we compiled as 32- or 64-bit process ?
  system.setWidth(sysconf(_SC_LONG_BIT));

  pushd(PROC_SYS);

  if(exists("kernel/vsyscall64"))
  {
    system.addCapability("vsyscall64");
    system.setWidth(64);
  }

  if(chdir("abi") == 0)
  {
    int i,n;
    struct dirent **namelist;

    n = scandir(".", &namelist, selectfile, alphasort);
    for(i=0; i<n; i++)
    {
      system.addCapability(namelist[i]->d_name);
      free(namelist[i]);
    }
    if(namelist)
      free(namelist);
  }

  popd();

  system.describeCapability("vsyscall32", _("32-bit processes"));
  system.describeCapability("vsyscall64", _("64-bit processes"));
  return true;
}

Here is the call graph for this function:

Here is the caller graph for this function: