Unix and Linux Discussions Tagged with system |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
49,735 |
Shell Programming and Scripting |
|
|
|
0 |
15,540 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
13,001 |
OS X (Apple) |
|
|
|
14 |
32,683 |
Programming |
|
|
|
9 |
15,964 |
UNIX for Beginners Questions & Answers |
|
|
|
27 |
36,507 |
Linux |
|
|
|
9 |
6,073 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
6,358 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
5,253 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
11,288 |
Shell Programming and Scripting |
|
|
|
2 |
5,339 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
12,550 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
15,489 |
Programming |
|
|
|
1 |
25,646 |
Solaris |
|
|
|
3 |
26,467 |
Solaris |
|
|
|
3 |
8,394 |
Cybersecurity |
|
|
|
2 |
26,847 |
Solaris |
|
|
|
1 |
8,001 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
14,021 |
HP-UX |
|
|
|
13 |
14,570 |
AIX |
|
|
|
0 |
4,094 |
Shell Programming and Scripting |
|
|
|
1 |
4,742 |
What is on Your Mind? |
|
|
|
1 |
6,593 |
AIX |
|
|
|
3 |
3,022 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
9,722 |
Solaris |
|
|
|
2 |
18,712 |
Programming |
|
|
|
10 |
6,763 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
3,278 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
13,852 |
Red Hat |
|
|
|
1 |
14,669 |
Answers to Frequently Asked Questions |
|
|
|
2 |
6,037 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
6,492 |
What is on Your Mind? |
|
|
|
4 |
7,287 |
What is on Your Mind? |
|
|
|
48 |
31,847 |
Web Development |
|
|
|
38 |
19,094 |
What is on Your Mind? |
|
|
|
8 |
6,476 |
Shell Programming and Scripting |
|
|
|
33 |
36,648 |
Solaris |
|
|
|
1 |
5,160 |
AIX |
|
|
|
4 |
2,748 |
Shell Programming and Scripting |
|
|
|
2 |
4,633 |
Shell Programming and Scripting |
sysfs(2) System Calls Manual sysfs(2)
NAME
sysfs - get file system type information
SYNOPSIS
DESCRIPTION
is used to return information about the file system types configured in the system. The number arguments accepted by varies and depends on
the opcode.
The current recognized opcodes and their functions are:
Translate fsname, a null-terminated file-system type identifier, into a file-system type index.
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; this buffer must be at least of size as defined in If there is no file-system type configured at
fs_index, a null string is returned for the file-system type identifier.
Return one more than the largest file system type configured. This is not the number of file system types configured,
because the type numbers may not be contiguous. See the example below.
RETURN VALUE
Upon successful completion, returns the file-system type index if the opcode is a value of 0 if the opcode is or the number of file system
types configured if the opcode is Otherwise, a value of -1 is returned and is set to indicate the error.
ERRORS
fails if one or more of the following are true and sets to the value indicated:
fsname points to an invalid file-system identifier; fs_index is negative or greater than the largest file-system type index;
opcode is invalid.
buf or fsname points to an invalid user address.
EXAMPLES
List the filesystem types configured in the system.
sysfs(2)