Query: idr_preload
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IDR_PRELOAD(9) Basic Kernel Library Functions IDR_PRELOAD(9)NAMEidr_preload - preload for idr_allocSYNOPSISvoid idr_preload(gfp_t gfp_mask);ARGUMENTSgfp_mask allocation mask to use for preloadingDESCRIPTIONPreload per-cpu layer buffer for idr_alloc. Can only be used from process context and each idr_preload invocation should be matched with idr_preload_end. Note that preemption is disabled while preloaded. The first idr_alloc in the preloaded section can be treated as if it were invoked with gfp_mask used for preloading. This allows using more permissive allocation masks for idrs protected by spinlocks. For example, if idr_alloc below fails, the failure can be treated as if idr_alloc were called with GFP_KERNEL rather than GFP_NOWAIT. idr_preload(GFP_KERNEL); spin_lock(lock); id = idr_alloc(idr, ptr, start, end, GFP_NOWAIT); spin_unlock(lock); idr_preload_end; if (id < 0) error;COPYRIGHTKernel Hackers Manual 3.10 June 2014 IDR_PRELOAD(9)
| Related Man Pages |
|---|
| kcalloc(9) - suse |
| call_usermodehelper_setup(9) - centos |
| bio_alloc_bioset(9) - centos |
| journal_try_to_free_buffers(9) - centos |
| usb_alloc_coherent(9) - centos |
| Similar Topics in the Unix Linux Community |
|---|
| Is UNIX an open source OS ? |
| Weird 'find' results |
| How to increment version inside a file? |
| CentOS7 restoring file capabilities |
| Controlling user input |