函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\rwsem.c Create Date:2022-07-27 10:48:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lock for writing

函数原型:int __sched down_write_killable(struct rw_semaphore *sem)

返回类型:int

参数:

类型参数名称
struct rw_semaphore *sem
1544  might_sleep()
1545  rwsem_acquire( & dep_map, 0, 0, _RET_IP_)
1547  如果LOCK_CONTENDED_RETURN(sem, __down_write_trylock, __down_write_killable)则
1549  rwsem_release( & dep_map, _RET_IP_)
1550  返回:负EINTR
1553  返回:0
调用者
名称描述
SYSCALL_DEFINE5
xol_add_vmaSlot allocation for XOL
do_mlock
SYSCALL_DEFINE2
SYSCALL_DEFINE1
sys_munlockall
SYSCALL_DEFINE1
__vm_munmap
SYSCALL_DEFINE5Emulation of deprecated remap_file_pages() syscall.
vm_brk_flags
do_mprotect_pkeypkey==-1 when doing a legacy mprotect()
SYSCALL_DEFINE5Expand (or shrink) an existing mapping, potentially moving it at the* same time (controlled by the MREMAP_MAYMOVE flag and available VM space)* MREMAP_FIXED option added 5-Dec-1999 by Benjamin LaHaise* This option implies MREMAP_MAYMOVE.
SYSCALL_DEFINE3The madvise(2) system call
ksys_shmdtdetach and kill segment if marked destroyed.* The work is done in shm_close.
setup_arg_pagesFinalizes the stack vm_area_struct. The flags and permissions are updated,* the stack is optionally relocated, and some extra space is added.
iterate_dir
aio_setup_ring
coredump_wait
write_ldt
dup_mmap
vm_mmap_pgoff
do_shmatFix 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.
__bprm_mm_init