mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
ipc: store ipcs into IDRs
This patch introduces ipcs storage into IDRs. The main changes are: . This ipc_ids structure is changed: the entries array is changed into a root idr structure. . The grow_ary() routine is removed: it is not needed anymore when adding an ipc structure, since we are now using the IDR facility. . The ipc_rmid() routine interface is changed: . there is no need for this routine to return the pointer passed in as argument: it is now declared as a void . since the id is now part of the kern_ipc_perm structure, no need to have it as an argument to the routine Signed-off-by: Nadia Derbey <Nadia.Derbey@bull.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
d2b20b1154
commit
7ca7e564e0
9 changed files with 332 additions and 314 deletions
|
@ -89,6 +89,7 @@ struct kern_ipc_perm
|
|||
{
|
||||
spinlock_t lock;
|
||||
int deleted;
|
||||
int id;
|
||||
key_t key;
|
||||
uid_t uid;
|
||||
gid_t gid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue