kernel/signal.c: add kernel-doc to syscalls
PATCH 2/2 kernel/signal.c: add kernel-doc to syscalls
From: Randy Dunlap <[email protected]>
Add kernel-doc to syscalls in signal.c.
Signed-off-by Randy Dunlap <[email protected]>
--- kernel/signal.c | 65 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 63 insertions(+), 2 deletions(-)
kernel/signal.c +63 -2
@@ -2061,6 +2061,9 @@ EXPORT_SYMBOL(unblock_all_signals);* System call entry points. */ +/** +* sys_restart_syscall - restart a system call +*/ SYSCALL_DEFINE0 (restart_syscall) {struct restart_block *restart = ¤t_thread_info ()->restart_block;
@@ -2114,6 +2117,13 @@ int sigprocmask(int how, sigset_t *set,return error; } +/** +* sys_rt_sigprocmask - change the list of currently blocked signals +* @how: whether to add, remove, or set signals +* @set: stores pending signals +* @oset: previous value of signal mask if non-null +* @sigsetsize: size of sigset_t type +*/ SYSCALL_DEFINE4(rt_sigprocmask, int, how, sigset_t __user *, set, sigset_t __user *, oset, size_t, sigsetsize) {
@@ -2174,6 +2184,12 @@ out:return error; } +/** +* sys_rt_sigpending - examine a pending signal that has been raised +* while blocked +* @set: stores pending signals +* @sigsetsize: size of sigset_t type or larger +*/ SYSCALL_DEFINE2(rt_sigpending, sigset_t __user *, set, size_t, sigsetsize) {return do_sigpending (set, sigsetsize);
@@ -2253,6 +2269,14 @@ int copy_siginfo_to_user(siginfo_t __use#endif +/** +* sys_rt_sigtimedwait - synchronously wait for queued signals specified +* in @uthese +* @uthese: queued signals to wait for +* @uinfo: if non-null, the signal's siginfo is returned here +* @uts: upper bound on process time suspension +* @sigsetsize: size of sigset_t type +*/ SYSCALL_DEFINE4(rt_sigtimedwait, const sigset_t __user *, uthese, siginfo_t __user *, uinfo, const struct timespec __user *, uts, size_t, sigsetsize)
@@ -2330,6 +2354,11 @@ SYSCALL_DEFINE4(rt_sigtimedwait, const sreturn ret; } +/** +* sys_kill - send a signal to a process +* @pid: the PID of the process +* @sig: signal to be sent +*/ SYSCALL_DEFINE2(kill, pid_t, pid, int, sig) {struct siginfo info;
@@ -2405,7 +2434,11 @@ SYSCALL_DEFINE3(tgkill, pid_t, tgid, pidreturn do_tkill (tgid, pid, sig); } -/* +/** +* sys_tkill - send signal to one specific task +* @pid: the PID of the task +* @sig: signal to be sent +* * Send a signal to only one task, even if it's a CLONE_THREAD task. */ SYSCALL_DEFINE2 (tkill, pid_t, pid, int, sig)
@@ -2417,6 +2450,12 @@ SYSCALL_DEFINE2(tkill, pid_t, pid, int,return do_tkill (0 , pid, sig); } +/** +* sys_rt_sigqueueinfo - send signal information to a signal +* @pid: the PID of the thread +* @sig: signal to be sent +* @uinfo: signal info to be sent +*/ SYSCALL_DEFINE3 (rt_sigqueueinfo, pid_t, pid, int, sig, siginfo_t __user *, uinfo) {
@@ -2574,6 +2613,10 @@ out:#ifdef __ARCH_WANT_SYS_SIGPENDING +/** +* sys_sigpending - examine pending signals +* @set: where mask of pending signal is returned +*/ SYSCALL_DEFINE1(sigpending, old_sigset_t __user *, set) {return do_sigpending (set,sizeof (*set));
@@ -2582,7 +2625,12 @@ SYSCALL_DEFINE1(sigpending, old_sigset_t#endif #ifdef __ARCH_WANT_SYS_SIGPROCMASK -/* +/** +* sys_sigprocmask - examine and change blocked signals +* @how: whether to add, remove, or set signals +* @set: signals to add or remove (if non-null) +* @oset: previous value of signal mask if non-null +* * Some platforms have their own version with special arguments; * others support only sys_rt_sigprocmask. */
@@ -2638,6 +2686,13 @@ out:#endif /* __ARCH_WANT_SYS_SIGPROCMASK */ #ifdef __ARCH_WANT_SYS_RT_SIGACTION +/** +* sys_rt_sigaction - alter an action taken by a process +* @sig: signal to be sent +* @act: the thread group ID of the thread +* @oact: the PID of the thread +* @sigsetsize: size of sigset_t type +*/ SYSCALL_DEFINE4(rt_sigaction, int, sig, const struct sigaction __user *, act, struct sigaction __user *, oact,
@@ -2724,6 +2779,12 @@ SYSCALL_DEFINE0(pause)#endif #ifdef __ARCH_WANT_SYS_RT_SIGSUSPEND +/** +* sys_rt_sigsuspend - replace the signal mask for a value with the +* @unewset value until a signal is received +* @unewset: new signal mask value +* @sigsetsize: size of sigset_t type +*/ SYSCALL_DEFINE2(rt_sigsuspend, sigset_t __user *, unewset, size_t, sigsetsize) {sigset_t newset;