Back to index

lshw  02.16
Functions
pcmcia.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_pcmcia (hwNode &n)

Function Documentation

bool scan_pcmcia ( hwNode n)

Definition at line 20 of file pcmcia.cc.

{
  bool result = false;
  hwNode *core = n.getChild("core");
  int count = 0;
  dirent **sockets = NULL;

  return result;

  if (!core)
  {
    n.addChild(hwNode("core", hw::bus));
    core = n.getChild("core");
  }

  if(!pushd(SYS_CLASS_PCMCIASOCKET))
    return false;

  count = scandir(".", &sockets, NULL, alphasort);
  if(count>=0)
  {
    for(int i=0; i<count; i++)
    {
      if(matches(sockets[i]->d_name, "^pcmcia_socket[[:digit:]]+$"))
      {
        sysfs::entry socket = sysfs::entry::byClass(CLASS_PCMCIASOCKET, sockets[i]->d_name);
        printf("found PCMCIA socket: %s\n", sockets[i]->d_name);
      }
      free(sockets[i]);
    }
    free(sockets);
  }

  popd();
  return result;
}

Here is the call graph for this function:

Here is the caller graph for this function: