函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\shm.c Create Date:2022-07-27 18:23:47
Last Modify:2020-03-17 22:58:32 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:SYSCALL_DEFINE3

函数原型:SYSCALL_DEFINE3(shmat, int, shmid, char __user *, shmaddr, int, shmflg)

返回类型:

参数:

1596  err等于Fix shmaddr, allocate descriptor, map shm, add attach descriptor to lists.* NOTE! Despite the name, this is NOT a direct system call entrypoint. The* "raddr" thing points to kernel space, and there has to be a wrapper around* this.
1597  如果err则返回:err
1599  System call handlers that, upon successful completion, need to return a* negative value should call force_successful_syscall_return() right before* returning. On architectures where the syscall convention provides for a* separate error flag (e()
1600  返回:ret