idr_preload man page on OpenSuSE

Man page or keyword search:  
man Server   25941 pages
apropos Keyword Search (all sections)
Output format
OpenSuSE logo
[printable version]

IDR_PRELOAD(9)		Basic Kernel Library Functions		IDR_PRELOAD(9)

NAME
       idr_preload - preload for idr_alloc

SYNOPSIS
       void idr_preload(gfp_t gfp_mask);

ARGUMENTS
       gfp_mask
	   allocation mask to use for preloading

DESCRIPTION
       Preload 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;

COPYRIGHT
Kernel Hackers Manual 3.11	 November 2013			IDR_PRELOAD(9)
[top]

List of man pages available for OpenSuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net