Re: [RFC] [PATCH] ipc/util.c: Use binary search for max_idx

2021-04-11 Thread Davidlohr Bueso
On Wed, 07 Apr 2021, Manfred Spraul wrote: If semctl(), msgctl() and shmctl() are called with IPC_INFO, SEM_INFO, MSG_INFO or SHM_INFO, then the return value is the index of the highest used entry in the kernel's internal array recording information about all SysV objects of the requested type

[RFC] [PATCH] ipc/util.c: Use binary search for max_idx

2021-04-07 Thread Manfred Spraul
If semctl(), msgctl() and shmctl() are called with IPC_INFO, SEM_INFO, MSG_INFO or SHM_INFO, then the return value is the index of the highest used entry in the kernel's internal array recording information about all SysV objects of the requested type for the current namespace. (This information