History log of /dragonfly/sys/sys/idr.h (Results 1 – 11 of 11)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v6.2.1, v6.2.0, v6.3.0, v6.0.1
# 68b1c3c8 07-Sep-2021 Sascha Wildner <saw@online.de>

<sys/*.h>: Fix some include guard related comments.


# 1f2cfeb1 07-Sep-2021 Sascha Wildner <saw@online.de>

<sys/*.h>: Fix some include guard names.


Revision tags: v6.0.0, v6.0.0rc1, v6.1.0, v5.8.3, v5.8.2, v5.8.1, v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3
# 554942b4 22-Oct-2019 zrj <rimvydas.jasinskas@gmail.com>

<sys/idr.h>: Move implementation details to Linux compat layer.

Nothing is needed here, linux_idr.c already includes <sys/malloc.h>,
while drm layer still needs malloc prototypes. So move it ther

<sys/idr.h>: Move implementation details to Linux compat layer.

Nothing is needed here, linux_idr.c already includes <sys/malloc.h>,
while drm layer still needs malloc prototypes. So move it there.

show more ...


Revision tags: v5.6.2, v5.6.1, v5.6.0, v5.6.0rc1, v5.7.0, v5.4.3, v5.4.2
# d0975e24 09-Mar-2019 Matthew Dillon <dillon@apollo.backplane.com>

kernel - Fix IDR bugs

* Allow ptr to be NULL in idr_remove() and idr_replace().

* Note that linux ERR returns from idr_replace() still not implemented
(requires the related ERR macros to be moved

kernel - Fix IDR bugs

* Allow ptr to be NULL in idr_remove() and idr_replace().

* Note that linux ERR returns from idr_replace() still not implemented
(requires the related ERR macros to be moved out of drm). idr_replace()
still returns NULL when the id cannot be found.

Requested-by: aly

show more ...


Revision tags: v5.4.1, v5.4.0, v5.5.0, v5.4.0rc1, v5.2.2, v5.2.1, v5.2.0, v5.3.0, v5.2.0rc, v5.0.2, v5.0.1, v5.0.0, v5.0.0rc2, v5.1.0, v5.0.0rc1, v4.8.1, v4.8.0, v4.6.2, v4.9.0, v4.8.0rc, v4.6.1, v4.6.0, v4.6.0rc2, v4.6.0rc, v4.7.0, v4.4.3, v4.4.2, v4.4.1, v4.4.0, v4.5.0, v4.4.0rc, v4.2.4, v4.3.1
# 1e707bbf 15-Jul-2015 François Tigeot <ftigeot@wolfpond.org>

kernel/linux: Implement idr_preload() and idr_preload_end()


Revision tags: v4.2.3, v4.2.1, v4.2.0, v4.0.6, v4.3.0, v4.2.0rc, v4.0.5, v4.0.4
# 829d44e6 07-Feb-2015 François Tigeot <ftigeot@wolfpond.org>

idr: Implement idr_alloc()


Revision tags: v4.0.3, v4.0.2, v4.0.1, v4.0.0, v4.0.0rc3, v4.0.0rc2, v4.0.0rc, v4.1.0, v3.8.2, v3.8.1, v3.6.3, v3.8.0, v3.8.0rc2, v3.9.0, v3.8.0rc, v3.6.2, v3.6.1
# 48f1ebb3 05-Dec-2013 Matthew Dillon <dillon@apollo.backplane.com>

idr: Fix an infinite loop issue

* idr routines were doing an infinite loop when the array was full but element
#0 was still free

* Because allocations start at 1, the low bound was not being take

idr: Fix an infinite loop issue

* idr routines were doing an infinite loop when the array was full but element
#0 was still free

* Because allocations start at 1, the low bound was not being taken account of
in idr_find_free(), causing an infinite loop

* idr_get_new_above() couldn't allocate an id >= 1 and idr_pre_get() thought it
didn't have to expand because id #0 was available

show more ...


Revision tags: v3.6.0, v3.7.1, v3.6.0rc, v3.7.0
# c824b4f9 06-Oct-2013 François Tigeot <ftigeot@wolfpond.org>

idr: idr_pre_get() takes two arguments

Don't diverge from the well-known Linux API


# b68b47fb 06-Oct-2013 François Tigeot <ftigeot@wolfpond.org>

idr: Protect data structures with a lwkt_token

Using spinlocks is not a good idea when you have to allocate memory


# 9fbfab16 06-Oct-2013 François Tigeot <ftigeot@wolfpond.org>

idr: Remove non-standard function idr_init1()

It never was part of the Linux idr API.


Revision tags: v3.4.3, v3.4.2, v3.4.0, v3.4.1, v3.4.0rc, v3.5.0, v3.2.2, v3.2.1, v3.2.0, v3.3.0
# 181ede86 23-Aug-2012 Vishesh Yadav <vishesh3y@gmail.com>

idr: Integer ID management library

Derived from fd code. Almost compatible with Linux. Differences
mentioned in man page.