Server for Information Technologies ������ ��������������
������� �������������� ����������
(095) 932-9212, 932-9213, 939-0783
E-mail: [email protected]
������ �������� ����(!) ������������� ���������� CIT Forum CD-ROM

SYSFS(2)

��������
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 � ��������������� �� �������:

GETFSIND
�������������� ��������� fsname, ��������� ������������� �������� �������, �������������� ������� ������, � ������ ���� �������� �������.
GETFSTYP
�������������� ��������� fs_index, ��������� ������ ���� �������� �������, � ������������� �������� �������, �������������� ������� ������. ������������� ������������ �� ������ buf. ������ ������ ������ ���� �� ����� FSTYPSZ; ��� ��������� ���������� � ����� <sys/fstyp.h>.
GETNFSTYP
��������� ������ ����� ����� �������� ������, ������������ ������� ������������.

��������� ����� sysfs ����������� ��������, ���� ��������� ���� �� ���� �� ��������� �������:

[EINVAL]
�������� fsname ��������� �� ������������ ������������� �������� �������; �������� fs_index �����������; �������� opcode �����������.
[EFAULT]
�������� buf ��� fsname ��������� �� ������� ����������� �������� ��������� ������������.

��. �����
fs(4).

�����������
��� �������� ���������� ������������ ������ ���� �������� �������, ���� �������� opcode ����� GETFSIND; 0, ���� �������� opcode ����� GETFSTYP; ����� ����� ����� �������� ������, ������������ ������� ������������, ���� �������� opcode ����� GETNFSTYP. � ������ ������ ������������ -1, � ���������� errno ������������� ��� ������.
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT