By setting the environment variable PLPA_SYSFS_MOUNT
to a valid directory, its possible to test the topology interface without
a kernel that provides this. The default is set to "/sys".
This is also useful for non default mount points for sysfs.
Initialy, I passed &argc, and &argv to the PLPA_NAME(plpa_init)() and
further down to PLPA_NAME(map_init)(), but when not called by the user
this would be always (NULL, NULL), so an environment variable sounds better.
Bert
|