Query: idr_alloc
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IDR_ALLOC(9) Basic Kernel Library Functions IDR_ALLOC(9)NAMEidr_alloc - allocate new idr entrySYNOPSISint idr_alloc(struct idr * idr, void * ptr, int start, int end, gfp_t gfp_mask);ARGUMENTSidr the (initialized) idr ptr pointer to be associated with the new id start the minimum id (inclusive) end the maximum id (exclusive, <= 0 for max) gfp_mask memory allocation flagsDESCRIPTIONAllocate an id in [start, end) and associate it with ptr. If no ID is available in the specified range, returns -ENOSPC. On memory allocation failure, returns -ENOMEM. Note that end is treated as max when <= 0. This is to always allow using start + N as end as long as N is inside integer range. The user is responsible for exclusively synchronizing all operations which may modify idr. However, read-only accesses such as idr_find or iteration can be performed under RCU read lock provided the user destroys ptr in RCU-safe way after removal from idr.COPYRIGHTKernel Hackers Manual 3.10 June 2014 IDR_ALLOC(9)
Related Man Pages |
---|
bio_alloc_bioset(9) - centos |
blk_make_request(9) - centos |
tcl_attemptalloc(3) - mojave |
tcl_free(3) - mojave |
tcl_free(3) - opendarwin |
Similar Topics in the Unix Linux Community |
---|
Weird 'find' results |
DB2 convert digits to binary format |
Shopt -s histappend |
CentOS 6 ran out of space, need to reclaim it |
Controlling user input |