Unix/Linux Go Back    

OpenSolaris 2009.06 - man page for sysfs (opensolaris section 2)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

sysfs(2)				   System Calls 				 sysfs(2)

       sysfs - get file system type information

       #include <sys/fstyp.h>
       #include <sys/fsid.h>

       int sysfs(int opcode, const char *fsname);

       int sysfs(int opcode, int fs_index, char *buf);

       int sysfs(int opcode);

       The  sysfs()  function  returns information about the file system types configured  in the
       system.	The number of arguments accepted by sysfs() depends on the opcode argument, which
       can take the following values:

       GETFSIND     Translate fsname, a null-terminated file-system type identifier, into a file-
		    system type index.

       GETFSTYP     Translate fs_index, a file-system type index, into	a  null-terminated  file-
		    system  type identifier and write it into the buffer pointed to by buf, which
		    must be at least of size FSTYPSZ as defined in <sys/fstyp.h>.

       GETNFSTYP    Return the total number of file system types configured in the system.

       Upon successful completion, the value returned depends upon the opcode  argument  as  fol-

       GETFSIND     the file-system type index

       GETFSTYP     0

       GETNFSTYP    the number of file system types configured

       Otherwise, -1 is returned  and errno is set to indicate the error.

       The sysfs() function will fail if:

       EFAULT	 The buf or fsname argument points to an illegal address.

       EINVAL	 The  fsname  argument	points to an invalid file-system identifier; the fs_index
		 argument is 0 or invalid; or the opcode argument is invalid.

SunOS 5.11				    5 Jul 1990					 sysfs(2)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 07:42 PM.