Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\rwsem.c Create Date:2022-07-28 09:48:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lock for writing

Proto:int __sched down_write_killable(struct rw_semaphore *sem)

Type:int

Parameter:

TypeParameterName
struct rw_semaphore *sem
1544  might_sleep()
1545  rwsem_acquire( & dep_map, 0, 0, _RET_IP_)
1547  If LOCK_CONTENDED_RETURN(sem, __down_write_trylock, __down_write_killable) Then
1549  rwsem_release( & dep_map, _RET_IP_)
1550  Return -EINTR
1553  Return 0
Caller
NameDescribe
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