sysfs(2) System Calls Manual sysfs(2) sysfs - [[deprecated]] int sysfs(int option, const char *fsname); [[deprecated]] int sysfs(int option, unsigned int fs_index, char *buf); [[deprecated]] int sysfs(int option); : sysfs, /sys, sysfs(5). () sysfs() , . sysfs() option : 1 fsname . 2 fs_index ( null) . buf. , buf . 3 , . . On success, sysfs() returns the filesystem index for option 1, zero for option 2, and the number of currently configured filesystems for option 3. On error, -1 is returned, and errno is set to indicate the error. EFAULT fsname buf . EINVAL fsname ; fs_index; option. None. SVr4. , System-V, ; . /proc /proc/; . libc glibc. buf. . proc(5), sysfs(5) Alexander Golubev , Azamat Hackimov , Hotellook, Nikita , Spiros Georgaras , Vladislav , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . sysfs(2)