xas_prev() on an idr tree? idr_get_prev()?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux