Back to index

lshw  02.16
Classes | Namespaces | Functions
sysfs.h File Reference
#include <string>
#include "hw.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sysfs::entry

Namespaces

namespace  sysfs

Functions

bool scan_sysfs (hwNode &n)
std::string sysfs_getbusinfo (const sysfs::entry &)
std::string sysfs_finddevice (const string &name)

Function Documentation

bool scan_sysfs ( hwNode n)

Definition at line 308 of file sysfs.cc.

{
  return false;
}

Here is the caller graph for this function:

std::string sysfs_finddevice ( const string &  name)

Definition at line 218 of file sysfs.cc.

{
  string devices = fs.path + string("/devices/");
  string result = "";

  if(!pushd(devices))
    return "";
  result = finddevice(name);
  popd();

  return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

std::string sysfs_getbusinfo ( const sysfs::entry )

Definition at line 179 of file sysfs.cc.

{
  if(e.This->devclass != "")
    return sysfs_getbusinfo_byclass(e.This->devclass, e.This->devname);
  if(e.This->devbus != "")
    return sysfs_getbusinfo_bybus(e.This->devbus, e.This->devname);
  return "";
}

Here is the call graph for this function:

Here is the caller graph for this function: