函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sysvipc_shm_proc_show

函数原型:static int sysvipc_shm_proc_show(struct seq_file *s, void *it)

返回类型:int

参数:

类型参数名称
struct seq_file *s
void *it
1741  pid_ns等于ipc_seq_pid_ns(s)
1742  user_ns等于seq_user_ns(s)
1743  ipcp等于it
1745  rss等于0, swp等于0
1747  shp等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(ipcp, structshmid_kernel, shm_perm)
1748  Calculate and add used RSS and swap pages of a shm.* Called with shm_ids.rwsem held as a reader
1756  seq_printf(s, "%10d %10d %4o "SIZE_SPEC" %5u %5u %5lu %5u %5u %5u %5u %10llu %10llu %10llu "SIZE_SPEC" "SIZE_SPEC"\n", key, id, mode, shm_segsz, pid_nr_ns(shm_cprid, pid_ns), pid_nr_ns(shm_lprid, pid_ns), shm_nattch, m_kuid_munged - Create a uid from a kuid user-namespace pair.*@targ: The user namespace we want a uid in.*@kuid: The kernel internal uid to start with.* Map @kuid into the user-namespace specified by @targ and* return the resulting uid., m_kgid_munged - Create a gid from a kgid user-namespace pair.*@targ: The user namespace we want a gid in.*@kgid: The kernel internal gid to start with.* Map @kgid into the user-namespace specified by @targ and* return the resulting gid., m_kuid_munged - Create a uid from a kuid user-namespace pair.*@targ: The user namespace we want a uid in.*@kuid: The kernel internal uid to start with.* Map @kuid into the user-namespace specified by @targ and* return the resulting uid., m_kgid_munged - Create a gid from a kgid user-namespace pair.*@targ: The user namespace we want a gid in.*@kgid: The kernel internal gid to start with.* Map @kgid into the user-namespace specified by @targ and* return the resulting gid., shm_atim, shm_dtim, shm_ctim, rss * PAGE_SIZE, swp * PAGE_SIZE)
1777  返回:0