|
��������
sysfs - ��������� ���������� � ���� �������� �������
���������
#include <sys/fstyp.h> #include <sys/fsid.h> int sysfs (opcode, fsname) int opcode; char *fsname; int sysfs (opcode, fs_index, buf) int opcode; int fs_index; char *buf; int sysfs (opcode) int opcode;
��������
��������� ����� sysfs ���������� ���������� � �����
�������� ������, ������������ ������� ������������.
����� ����������, ����������� ��������� ������� sysfs,
����� ���������� � ������������ ��������� ���������
opcode. � ��������� ������ �������������� ���������
�������� opcode � ��������������� �� �������:
��������� ����� sysfs ����������� ��������, ���� ��������� ���� �� ���� �� ��������� �������:
��. �����
fs(4).
�����������
��� �������� ���������� ������������ ������ ���� �������� �������, ���� �������� opcode ����� GETFSIND; 0,
���� �������� opcode ����� GETFSTYP; ����� ����� �����
�������� ������, ������������ ������� ������������, ���� �������� opcode ����� GETNFSTYP. � ������ ������
������������ -1, � ���������� errno ������������� ���
������.
|