Question about sysfs and syscall

Submitted by Anonymous
on April 29, 2005 - 10:10pm

Hi,

I don't know if this is the right place to ask this question, if it's not
I apologize.

Anyway. /proc could be used to retrieve information about the computer, by
simply saying cat /proc/pci. Now there is sysfs and lspci. But can I still use
/sys in that simple way, with just cat? And how do I read /sys ?
I'm supposed to do
rc=syscall(SYS_sysfs, ... )
but how do I know what arguments I have to feed the syscall function to get the
appropriate info.

I hope I'm not too stupid.

Thanks,

Martijn