Hi, the ipc code needs to find the highest index allocated in an idr tree.It is part of the user space API: The return value of semctl(), msgctl() for ..._INFO contains that number.
Right now, the number is updated by calling idr_find(--idx), until this succeeds.
(ipc_rmid() in ipc/util.c). Is there a a standard function already? Should I create a patch that adds idr_get_prev() to the idr API? -- Manfred