Linux kernel for i386 System Call Quick Reference



Current Version:0.1
Data:2007-06-14
Author:comcat
Email: jiankemeng@gmail.com



No Name Description Source
1exitterminate the current processkernel/exit.c
2forkcreate a child processarch/i386/kernel/process.c
3readread from a file descriptorfs/read_write.c
4writewrite to a file descriptorfs/read_write.c
5openopen a file or devicefs/open.c
6closeclose a file descriptorfs/open.c
7waitpidwait for process terminationkernel/exit.c
8creatcreate a file or device ("man 2 open" for information)fs/open.c
9linkmake a new name for a filefs/namei.c
10unlinkdelete a name and possibly the file it refers tofs/namei.c
11execveexecute programarch/i386/kernel/process.c
12chdirchange working directoryfs/open.c
13timeget time in secondskernel/time.c
14mknodcreate a special or ordinary filefs/namei.c
15chmodchange permissionsof a filefs/open.c
16lchownchange ownership of a filefs/open.c
18statget file statusfs/stat.c
19lseekreposition read/write file offsetfs/read_write.c
20getpidget process identificationkernel/sched.c
21mountmount filesystemsfs/super.c
22umountunmount filesystemsfs/super.c
23setuidset real user IDkernel/sys.c
24getuidget real user IDkernel/sched.c
25stimeset system time and datekernel/time.c
26ptraceallows a parent process to control the execution of a child processarch/i386/kernel/ptrace.c
27alarmset an alarm clock for delivery of a signalkernel/sched.c
28fstatget file statusfs/stat.c
29pausesuspend process until signalarch/i386/kernel/sys_i386.c
30utimeset file access and modification timesfs/open.c
33accesscheck user's permissions for a filefs/open.c
34nicechange process prioritykernel/sched.c
36syncupdate the super blockfs/buffer.c
37killsend signal to a processkernel/signal.c
38renamechange the name or location of a filefs/namei.c
39mkdircreate a directoryfs/namei.c
40rmdirremove a directoryfs/namei.c
41dupduplicate an open file descriptorfs/fcntl.c
42pipecreate an interprocess channelarch/i386/kernel/sys_i386.c
43timesget process timeskernel/sys.c
45brkchange the amount of space allocated for the calling process's data segmentmm/mmap.c
46setgidset real group IDkernel/sys.c
47getgidget real group IDkernel/sched.c
48sys_signalANSI C signal handlingkernel/signal.c
49geteuidget effective user IDkernel/sched.c
50getegidget effective group IDkernel/
51acctenable or disable process accountingkernel/acct.c
52umount2unmount a file systemfs/super.c
54ioctlcontrol devicefs/ioctl.c
55fcntlfile controlfs/fcntl.c
56mpx(unimplemented)kernel/
57setpgidset process group IDkernel/sys.c
58ulimit(unimplemented)kernel/
59oldunameobsolete uname system callarch/i386/kernel/sys_i386.c
60umaskset file creation maskkernel/sys.c
61chrootchange root directoryfs/open.c
62ustatget file system statisticsfs/super.c
63dup2duplicate a file descriptorfs/fcntl.c
64getppidget parent process IDkernel/sched.c
65getpgrpget the process group IDkernel/sys.c
66setsidcreates a session and sets the process group IDkernel/sys.c
67sigactionPOSIX signal handling functionsarch/i386/kernel/signal.c
68sgetmaskANSI C signal handlingkernel/signal.c
69ssetmaskANSI C signal handlingkernel/signal.c
70setreuidset real and effective user IDskernel/sys.c
71setregidset real and effective group IDskernel/sys.c
72sigsuspendinstall a signal mask and suspend caller until signalarch/i386/kernel/signal.c
73sigpendingexamine signals that are blocked and pendingkernel/signal.c
74sethostnameset hostnamekernel/sys.c
75setrlimitset maximum system resource con sumptionkernel/sys.c
76getrlimitget maximum system resource con sumptionkernel/sys.c
77getrusageget maximum system resource con sumptionkernel/sys.c
78gettimeofdayget the date and timekernel/time.c
79settimeofdayset the date and timekernel/time.c
80getgroupsget list of supplementary group IDskernel/sys.c
81setgroupsset list of supplementary group IDskernel/sys.c
82old_selectsync. I/O multiplexingarch/i386/kernel/sys_i386.c
83symlinkmake a symbolic link to a filefs/namei.c
84lstatget file statusfs/stat.c
85readlinkread the contents of a symbolic linkfs/stat.c
86uselibselect shared libraryfs/exec.c
87swaponstart swapping to file/devicemm/swapfile.c
88rebootreboot or enable/disable Ctrl-Alt-Delkernel/sys.c
89old_readdirread directory entryfs/readdir.c
90old_mmapmap pages of memoryarch/i386/kernel/sys_i386.c
91munmapunmap pages of memorymm/mmap.c
92truncateset a file to a specified lengthfs/open.c
93ftruncateset a file to a specified lengthfs/open.c
94fchmodchange access permission mode of filefs/open.c
95fchownchange owner and group of a filefs/open.c
96getpriorityget program scheduling prioritykernel/sys.c
97setpriorityset program scheduling prioritykernel/sys.c
98profilexecution time profilexxxx
99statfsget file system statisticsfs/open.c
100fstatfsget file system statisticsfs/open.c
101iopermset port input/output permissionsarch/i386/kernel/ioport.c
102socketcallsocket system callsnet/socket.c
103syslogread and/or clear kernel message ring bufferkernel/printk.c
104setitimerset value of interval timerkernel/itimer.c
105getitimerget value of interval timerkernel/itimer.c
106sys_newstatget file statusfs/stat.c
107sys_newlstatget file statusfs/stat.c
108sys_newfstatget file statusfs/stat.c
109oldunameget name and information about current kernelarch/i386/kernel/sys_i386.c
110ioplchange I/O privilege levelarch/i386/kernel/ioport.c
111vhangupvirtually hangup the current ttyfs/open.c
112idlemake process 0 idlearch/i386/kernel/process.c
113vm86oldenter virtual 8086 modearch/i386/kernel/vm86.c
114wait4wait for process termination, BSD stylekernel/exit.c
115swapoffstop swapping to file/devicemm/swapfile.c
116sysinforeturns information on overall system statisticskernel/info.c
117ipcSystem V IPC system callsarch/i386/kernel/sys_i386.c
118fsyncsynchronize a file's complete in-core state with that on diskfs/buffer.c
119sigreturnreturn from signal handler and cleanup stack framearch/i386/kernel/signal.c
120clonecreate a child processarch/i386/kernel/process.c
121setdomainnameset domain namekernel/sys.c
122unameget name and information about current kernelkernel/sys.c
123modify_ldtget or set ldtarch/i386/kernel/ldt.c
124adjtimextune kernel clockkernel/time.c
125mprotectset protection of memory mappingmm/mprotect.c
126sigprocmaskPOSIX signal handling functionskernel/signal.c
127create_modulecreate a loadable module entrykernel/module.c
128init_moduleinitialize a loadable module entrykernel/module.c
129delete_moduledelete a loadable module entrykernel/
130get_kernel_symsretrieve exported kernel and module symbolskernel/module.c
131quotactlmanipulate disk quotasfs/dquot.c
132getpgidget process group IDkernel/sys.c
133fchdirchange working directoryfs/open.c
134bdflushstart, flush, or tune buffer-dirty-flush daemonfs/buffer.c
135sysfsget file system type informationfs/super.c
136personalityset the process execution domainkernel/exec_domain.c
137afs_syscall(unimplemented)kernel/
138setfsuidset user identity used for file system checkskernel/sys.c
139setfsgidset group identity used for file system checkskernel/sys.c
140sys_llseekmove extended read/write file pointerfs/read_write.c
141getdentsread directory entriesfs/readdir.c
142selectsync. I/O multiplexingfs/select.c
143flockapply or remove an advisory lock on an open filefs/locks.c
144msyncsynchronize a file with a memory mapmm/filemap.c
145readvread data into multiple buffersfs/read_write.c
146writevwrite data into multiple buffersfs/read_write.c
147sys_getsidget process group ID of session leaderkernel/sys.c
148fdatasyncsynchronize a file's in-core data with that on diskfs/buffer.c
149sysctlread/write system parameterskernel/sysctl.c
150mlocklock pages in memorymm/mlock.c
151munlockunlock pages in memorymm/mlock.c
152mlockalldisable paging for calling processmm/mlock.c
153munlockallreenable paging for calling processmm/mlock.c
154sched_setparamset scheduling parameterskernel/sched.c
155sched_getparamget scheduling parameterskernel/sched.c
156sched_setschedulerset scheduling algorithm parameterskernel/sched.c
157sched_getschedulerget scheduling algorithm parameterskernel/sched.c
158sched_yieldyield the processorkernel/sched.c
159sched_get_priority_maxget max static priority rangekernel/sched.c
160sched_get_priority_minget min static priority rangekernel/sched.c
161sched_rr_get_intervalget the SCHED_RR interval for the named processkernel/sched.c
162nanosleeppause execution for a specified time (nano seconds) kernel/sched.c
163mremapre-map a virtual memory addressmm/mremap.c
164setresuidset real, effective and saved user or group IDkernel/sys.c
165getresuidget real, effective and saved user or group IDkernel/sys.c
166vm86enter virtual 8086 modearch/i386/kernel/vm86.c
167query_modulequery the kernel for various bits pertain ing to moduleskernel/module.c
168pollwait for some event on a file descriptorfs/select.c
169nfsservctlsyscall interface to kernel nfs daemonfs/filesystems.c
170setresgidset real, effective and saved user or group IDkernel/sys.c
171getresgidget real, effective and saved user or group IDkernel/sys.c
172prctloperations on a processkernel/sys.c
173rt_sigreturnxxxarch/i386/kernel/signal.c
174rt_sigactionxxxkernel/signal.c
175rt_sigprocmaskxxxkernel/signal.c
176rt_sigpendingxxxkernel/signal.c
177rt_sigtimedwaitxxxkernel/signal.c
178rt_sigqueueinfoxxxkernel/signal.c
179rt_sigsuspendxxxarch/i386/kernel/signal.c
180preadread from a file descriptor at a given offsetfs/read_write.c
181sys_pwritewrite to a file descriptor at a given offsetfs/read_write.c
182chownchange ownership of a filefs/open.c
183getcwdGet current working directoryfs/dcache.c
184capgetget process capabilitieskernel/capability.c
185capsetset process capabilitieskernel/capability.c
186sigaltstackset/get signal stack contextarch/i386/kernel/signal.c
187sendfiletransfer data between file descriptorsmm/filemap.c
188getpmsg(unimplemented)xxx
189putpmsg(unimplemented)xxx
190vforkcreate a child process and block parentxxx