函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:detach and kill segment if marked destroyed.* The work is done in shm_close.

函数原型:long ksys_shmdt(char __user *shmaddr)

返回类型:long

参数:

类型参数名称
char __user *shmaddr
1628  mm等于mm
1630  addr等于shmaddr
1631  retval等于负EINVAL
1633  size等于0
1638  如果addr按位与PAGE_MASK的反则返回:retval
1641  如果lock for writing则返回:负EINTR
1665  vma等于look up the first VMA in which addr resides, NULL if none* - should be called with mm->mmap_sem at least held readlocked
1668 vma循环
1669  next等于linked list of VM areas per task, sorted by address
1694  retval等于0
1695  vma等于next
1696  退出
1698  vma等于next
1706  size等于 align the pointer to the (next) page boundary (size)
1707 vmaThe first byte after our end addresswithin vm_mm. addr小于等于size循环
1708  next等于linked list of VM areas per task, sorted by address
1711  如果Function pointers to deal with this struct. 恒等于shm_vm_opsOur start address within vm_mm. addr的差除PAGE_SIZE恒等于Offset (within vm_file) in PAGE_SIZEunits File we map to (can be NULL). 恒等于filedo_munmap(mm, Our start address within vm_mm. , The first byte after our end addresswithin vm_mm. - Our start address within vm_mm. , NULL)
1715  vma等于next
1729  lease a write lock
1730  返回:retval
调用者
名称描述
SYSCALL_DEFINE1
ksys_ipc