Tabela de Chamadas ao sistema no Linux

A tabela abaixo lista as chamadas de sistema do kernel 2.2 do Linux. Ela foi elaborada a partir do merge das tabelas de Derick Swanepoel e de Jialong He.

Na esquerda estao os numeros das chamadas de sistema. Este numero sera armazenado no registrador %eax. Do lado direito da tabela estao os tipos de valores a serem colocados nos demais registradores antes de chamar a interrupcao int 0x80. Apos cada chamada de sistema, um inteiro é devolvido em %eax.

%eaxNameSource %ebx%ecx%edx%esx%ediDescription
1sys_exitkernel/exit.c int----terminate the current process
2sys_forkarch/i386/kernel/process.c struct pt_regs----create a child process
3sys_readfs/read_write.c unsigned intchar *size_t--read from a file descriptor
4sys_writefs/read_write.c unsigned intconst char *size_t--write to a file descriptor
5sys_openfs/open.c const char *intint--open a file or device
6sys_closefs/open.c unsigned int----close a file descriptor
7sys_waitpidkernel/exit.c pid_tunsigned int *int--wait for process termination
8sys_creatfs/open.c const char *int---create a file or device ("man 2 open" for information)
9sys_linkfs/namei.c const char *const char *---make a new name for a file
10sys_unlinkfs/namei.c const char *----delete a name and possibly the file it refers to
11sys_execvearch/i386/kernel/process.c struct pt_regs----execute program
12sys_chdirfs/open.c const char *----change working directory
13sys_timekernel/time.c int *----get time in seconds
14sys_mknodfs/namei.c const char *intdev_t--create a special or ordinary file
15sys_chmodfs/open.c const char *mode_t---change permissions of a file
16sys_lchownfs/open.c const char *uid_tgid_t--change ownership of a file
18sys_statfs/stat.c char *struct __old_kernel_stat *---get file status
19sys_lseekfs/read_write.c unsigned intoff_tunsigned int--reposition read/write file offset
20sys_getpidkernel/sched.c -----get process identification
21sys_mountfs/super.c char *char *char *--mount filesystems
22sys_oldumountfs/super.c char *----unmount filesystems
23sys_setuidkernel/sys.c uid_t----set real user ID
24sys_getuidkernel/sched.c -----get real user ID
25sys_stimekernel/time.c int *----set system time and date
26sys_ptracearch/i386/kernel/ptrace.c longlonglonglong-allows a parent process to control the execution of a child process
27sys_alarmkernel/sched.c unsigned int----set an alarm clock for delivery of a signal
28sys_fstatfs/stat.c unsigned intstruct __old_kernel_stat *---get file status
29sys_pausearch/i386/kernel/sys_i386.c -----suspend process until signal
30sys_utimefs/open.c char *struct utimbuf *---set file access and modification times
33sys_accessfs/open.c const char *int---check user's permissions for a file
34sys_nicekernel/sched.c int----change process priority
36sys_syncfs/buffer.c -----update the super block
37sys_killkernel/signal.c intint---send signal to a process
38sys_renamefs/namei.c const char *const char *---change the name or location of a file
39sys_mkdirfs/namei.c const char *int---create a directory
40sys_rmdirfs/namei.c const char *----remove a directory
41sys_dupfs/fcntl.c unsigned int----duplicate an open file descriptor
42sys_pipearch/i386/kernel/sys_i386.c unsigned long *----create an interprocess channel
43sys_timeskernel/sys.c struct tms *----get process times
45sys_brkmm/mmap.c unsigned long----change the amount of space allocated for the calling process's data segment
46sys_setgidkernel/sys.c gid_t----set real group ID
47sys_getgidkernel/sched.c -----get real group ID
48sys_signalkernel/signal.c int__sighandler_t---ANSI C signal handling
49sys_geteuidkernel/sched.c -----get effective user ID
50sys_getegidkernel/sched.c -----get effective group ID
51sys_acctkernel/acct.c const char *----enable or disable process accounting
52sys_umountfs/super.c char *int---unmount a file system
54sys_ioctlfs/ioctl.c unsigned intunsigned intunsigned long--control device
55sys_fcntlfs/fcntl.c unsigned intunsigned intunsigned long--file control
57sys_setpgidkernel/sys.c pid_tpid_t---set process group ID
59sys_oldunamearch/i386/kernel/sys_i386.c struct oldold_utsname *----obsolete uname system call
60sys_umaskkernel/sys.c int----set file creation mask
61sys_chrootfs/open.c const char *----change root directory
62sys_ustatfs/super.c dev_tstruct ustat *---get file system statistics
63sys_dup2fs/fcntl.c unsigned intunsigned int---duplicate a file descriptor
64sys_getppidkernel/sched.c -----get parent process ID
65sys_getpgrpkernel/sys.c -----get the process group ID
66sys_setsidkernel/sys.c -----creates a session and sets the process group ID
67sys_sigactionarch/i386/kernel/signal.c intconst struct old_sigaction *struct old_sigaction *--POSIX signal handling functions
68sys_sgetmaskkernel/signal.c -----ANSI C signal handling
69sys_ssetmaskkernel/signal.c int----ANSI C signal handling
70sys_setreuidkernel/sys.c uid_tuid_t---set real and effective user IDs
71sys_setregidkernel/sys.c gid_tgid_t---set real and effective group IDs
72sys_sigsuspendarch/i386/kernel/signal.c intintold_sigset_t--install a signal mask and suspend caller until signal
73sys_sigpendingkernel/signal.c old_sigset_t *----examine signals that are blocked and pending
74sys_sethostnamekernel/sys.c char *int---set hostname
75sys_setrlimitkernel/sys.c unsigned intstruct rlimit *---set maximum system resource con sumption
76sys_getrlimitkernel/sys.c unsigned intstruct rlimit *---get maximum system resource con sumption
77sys_getrusagekernel/sys.c intstruct rusage *---get maximum system resource con sumption
78sys_gettimeofdaykernel/time.c struct timeval *struct timezone *---get the date and time
79sys_settimeofdaykernel/time.c struct timeval *struct timezone *---set the date and time
80sys_getgroupskernel/sys.c intgid_t *---get list of supplementary group IDs
81sys_setgroupskernel/sys.c intgid_t *---set list of supplementary group IDs
82old_selectarch/i386/kernel/sys_i386.c struct sel_arg_struct *----sync. I/O multiplexing
83sys_symlinkfs/namei.c const char *const char *---make a symbolic link to a file
84sys_lstatfs/stat.c char *struct __old_kernel_stat *---get file status
85sys_readlinkfs/stat.c const char *char *int--read the contents of a symbolic link
86sys_uselibfs/exec.c const char *----select shared library
87sys_swaponmm/swapfile.c const char *int---start swapping to file/device
88sys_rebootkernel/sys.c intintintvoid *-reboot or enable/disable Ctrl-Alt -Del
89old_readdirfs/readdir.c unsigned intvoid *unsigned int--read directory entry
90old_mmaparch/i386/kernel/sys_i386.c struct mmap_arg_struct *----map pages of memory
91sys_munmapmm/mmap.c unsigned longsize_t---unmap pages of memory
92sys_truncatefs/open.c const char *unsigned long---set a file to a specified length
93sys_ftruncatefs/open.c unsigned intunsigned long---set a file to a specified length
94sys_fchmodfs/open.c unsigned intmode_t---change access permission mode of file
95sys_fchownfs/open.c unsigned intuid_tgid_t--change owner and group of a file
96sys_getprioritykernel/sys.c intint---get program scheduling priority
97sys_setprioritykernel/sys.c intintint--set program scheduling priority
99sys_statfsfs/open.c const char *struct statfs *---get file system statistics
100sys_fstatfsfs/open.c unsigned intstruct statfs *---get file system statistics
101sys_iopermarch/i386/kernel/ioport.c unsigned longunsigned longint--set port input/output permissions
102sys_socketcallnet/socket.c intunsigned long *---socket system calls net/so
103sys_syslogkernel/printk.c intchar *int--read and/or clear kernel message ring buffer
104sys_setitimerkernel/itimer.c intstruct itimerval *struct itimerval *--set value of interval timer
105sys_getitimerkernel/itimer.c intstruct itimerval *---get value of interval timer
106sys_newstatfs/stat.c char *struct stat *---get file status
107sys_newlstatfs/stat.c char *struct stat *---get file status
108sys_newfstatfs/stat.c unsigned intstruct stat *---get file status
109sys_unamearch/i386/kernel/sys_i386.c struct old_utsname *----get name and information about current kernel
110sys_ioplarch/i386/kernel/ioport.c unsigned long----change I/O privilege level
111sys_vhangupfs/open.c -----virtually hangup the current tty
112sys_idlearch/i386/kernel/process.c -----make process 0 idle
113sys_vm86oldarch/i386/kernel/vm86.c unsigned longstruct vm86plus_struct *---enter virtual 8086 mode
114sys_wait4kernel/exit.c pid_tunsigned long *int optionsstruct rusage *-wait for process termination, BSD style
115sys_swapoffmm/swapfile.c const char *----stop swapping to file/device
116sys_sysinfokernel/info.c struct sysinfo *----returns information on overall system statistics
117sys_ipc (*Note)arch/i386/kernel/sys_i386.c uintintintintvoid *System V IPC system calls
118sys_fsyncfs/buffer.c unsigned int----synchronize a file's complete in-core state with that on disk
119sys_sigreturnarch/i386/kernel/signal.c unsigned long----return from signal handler and cleanup stack frame
120sys_clonearch/i386/kernel/process.c struct pt_regs----create a child process
121sys_setdomainnamekernel/sys.c char *int---set domain name
122sys_newunamekernel/sys.c struct new_utsname *----get name and information about current kernel
123sys_modify_ldtarch/i386/kernel/ldt.c intvoid *unsigned long--get or set ldt
124sys_adjtimexkernel/time.c struct timex *----tune kernel clock
125sys_mprotectmm/mprotect.c unsigned longsize_tunsigned long--set protection of memory mapping
126sys_sigprocmaskkernel/signal.c intold_sigset_t *old_sigset_t *--POSIX signal handling functions
127sys_create_modulekernel/module.c const char *size_t---create a loadable module entry
128sys_init_modulekernel/module.c const char *struct module *---initialize a loadable module entry
129sys_delete_modulekernel/module.c const char *----delete a loadable module entry
130sys_get_kernel_symskernel/module.c struct kernel_sym *----retrieve exported kernel and module symbols
131sys_quotactlfs/dquot.c intconst char *intcaddr_t-manipulate disk quotas
132sys_getpgidkernel/sys.c pid_t----get process group ID
133sys_fchdirfs/open.c unsigned int----change working directory
134sys_bdflushfs/buffer.c intlong---start, flush, or tune buffer-dirty-flush daemon
135sys_sysfsfs/super.c intunsigned longunsigned long--get file system type information
136sys_personalitykernel/exec_domain.c unsigned long----set the process execution domain
138sys_setfsuidkernel/sys.c uid_t----set user identity used for file system checks
139sys_setfsgidkernel/sys.c gid_t----set group identity used for file system checks
140sys_llseekfs/read_write.c unsigned intunsigned longunsigned longloff_t *unsigned intmove extended read/write file pointer
141sys_getdentsfs/readdir.c unsigned intvoid *unsigned int--read directory entries
142sys_selectfs/select.c intfd_set *fd_set *fd_set *struct timeval *sync. I/O multiplexing
143sys_flockfs/locks.c unsigned intunsigned int---apply or remove an advisory lock on an open file
144sys_msyncmm/filemap.c unsigned longsize_tint--synchronize a file with a memory map
145sys_readvfs/read_write.c unsigned longconst struct iovec *unsigned long--read data into multiple buffers
146sys_writevfs/read_write.c unsigned longconst struct iovec *unsigned long--write data into multiple buffers
147sys_getsidkernel/sys.c pid_t----get process group ID of session leader
148sys_fdatasyncfs/buffer.c unsigned int----synchronize a file's in-core data with that on disk
149sys_sysctlkernel/sysctl.c struct __sysctl_args *----read/write system parameters
150sys_mlockmm/mlock.c unsigned longsize_t---lock pages in memory
151sys_munlockmm/mlock.c unsigned longsize_t---unlock pages in memory
152sys_mlockallmm/mlock.c int----disable paging for calling process
153sys_munlockallmm/mlock.c -----reenable paging for calling process
154sys_sched_setparamkernel/sched.c pid_tstruct sched_param *---set scheduling parameters
155sys_sched_getparamkernel/sched.c pid_tstruct sched_param *---get scheduling parameters
156sys_sched_setschedulerkernel/sched.c pid_tintstruct sched_param *--set scheduling algorithm parameters
157sys_sched_getschedulerkernel/sched.c pid_t----get scheduling algorithm parameters
158sys_sched_yieldkernel/sched.c -----yield the processor
159sys_sched_get_priority_maxkernel/sched.c int----get max static priority range
160sys_sched_get_priority_minkernel/sched.c int----get min static priority range
161sys_sched_rr_get_intervalkernel/sched.c pid_tstruct timespec *---val get the SCHED_RR interval for the named process
162sys_nanosleepkernel/sched.c struct timespec *struct timespec *---pause execution for a specified time (nano seconds)
163sys_mremapmm/mremap.c unsigned longunsigned longunsigned longunsigned long-re-map a virtual memory address
164sys_setresuidkernel/sys.c uid_tuid_tuid_t--set real, effective and saved user or group ID
165sys_getresuidkernel/sys.c uid_t *uid_t *uid_t *--get real, effective and saved user or group ID
166sys_vm86arch/i386/kernel/vm86.c struct vm86_struct *----enter virtual 8086 mode
167sys_query_modulekernel/module.c const char *intchar *size_tsize_t *query the kernel for various bits pertain ing to modules
168sys_pollfs/select.c struct pollfd *unsigned intlong--wait for some event on a file descriptor
169sys_nfsservctlfs/filesystems.c intvoid *void *--syscall interface to kernel nfs daemon
170sys_setresgidkernel/sys.c gid_tgid_tgid_t--set real, effective and saved user or group ID
171sys_getresgidkernel/sys.c gid_t *gid_t *gid_t *--get real, effective and saved user or group ID
172sys_prctlkernel/sys.c intunsigned longunsigned longunsigned longunsigned longoperations on a process
173sys_rt_sigreturnarch/i386/kernel/signal.c unsigned long-----
174sys_rt_sigactionkernel/signal.c intconst struct sigaction *struct sigaction *size_t--
175sys_rt_sigprocmaskkernel/signal.c intsigset_t *sigset_t *size_t--
176sys_rt_sigpendingkernel/signal.c sigset_t *size_t----
177sys_rt_sigtimedwaitkernel/signal.c const sigset_t *siginfo_t *const struct timespec *size_t--
178sys_rt_sigqueueinfokernel/signal.c intintsiginfo_t *---
179sys_rt_sigsuspendarch/i386/kernel/signal.c sigset_t *size_t----
180sys_preadfs/read_write.c unsigned intchar *size_tloff_t-read from a file descriptor at a given offset
181sys_pwritefs/read_write.c unsigned intconst char *size_tloff_t-write to a file descriptor at a given offset
182sys_chownfs/open.c const char *uid_tgid_t--change ownership of a file
183sys_getcwdfs/dcache.c char *unsigned long---Get current working directory
184sys_capgetkernel/capability.c cap_user_header_tcap_user_data_t---get process capabilities
185sys_capsetkernel/capability.c cap_user_header_tconst cap_user_data_t---set process capabilities
186sys_sigaltstackarch/i386/kernel/signal.c const stack_t *stack_t *---set/get signal stack context
187sys_sendfilemm/filemap.c intintoff_t *size_t-transfer data between file descriptors
190sys_vforkarch/i386/kernel/process.c struct pt_regs----create a child process and block parent



Pagina de MAC0211
Pagina do Fabio
Pagina do DCC