Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\shm.c Create Date:2022-07-28 16:48:43
Last Modify:2020-03-17 22:58:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sysvipc_shm_proc_show

Proto:static int sysvipc_shm_proc_show(struct seq_file *s, void *it)

Type:int

Parameter:

TypeParameterName
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  Return 0