Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\syscall.h Create Date:2022-07-28 07:12:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Only the low 32 bits of orig_ax are meaningful, so we return int.* This importantly ignores the high bits on 64-bit, so comparisons* sign-extend the low 32 bits.

Proto:static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs)

Type:int

Parameter:

TypeParameterName
struct task_struct *task
struct pt_regs *regs
50  Return * On syscall entry, this is syscall#. On CPU exception, this is error code. * On hw interrupt, it's IRQ number:
Caller
NameDescribe
collect_syscall
handle_signal
do_signalNote that 'init' is a special process: it doesn't get signals it doesn't* want to handle. Thus you cannot kill init even with a SIGKILL even by* mistake.
trace_get_syscall_nr