Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\util.c Create Date:2022-07-28 16:39:32
Last Modify:2022-05-23 18:05:07 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pc_findkey - find a key in an ipc identifier set*@ids: ipc identifier set*@key: key to find* Returns the locked pointer to the ipc structure if found or NULL* otherwise. If key is found ipc points to the owning ipc structure* Called with writer ipc_ids

Proto:static struct kern_ipc_perm *ipc_findkey(struct ipc_ids *ids, key_t key)

Type:struct kern_ipc_perm

Parameter:

TypeParameterName
struct ipc_ids *ids
key_tkey
175  ipcp = hashtable_lookup_fast - search hash table, without RCU read lock*@ht: hash table*@key: the pointer to the key*@params: hash table parameters* Computes the hash value for the key and traverses the bucket chain looking* for a entry with an identical key
177  If Not ipcp Then Return NULL
180  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
181  ipc_lock_object(ipcp)
182  Return ipcp
Caller
NameDescribe
ipcget_publicpcget_public - get an ipc object or create a new one*@ns: ipc namespace*@ids: ipc identifier set*@ops: the actual creation routine to call*@params: its parameters* This routine is called by sys_msgget, sys_semget() and sys_shmget()