idr_for_each 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_FOR_EACH(9)		Basic Kernel Library Functions	       IDR_FOR_EACH(9)

NAME
       idr_for_each - iterate through all stored pointers

SYNOPSIS
       int idr_for_each(struct idr * idp,
			int (*fn) (int id, void *p, void *data), void * data);

ARGUMENTS
       idp
	   idr handle

       fn
	   function to be called for each pointer

       data
	   data passed back to callback function

DESCRIPTION
       Iterate over the pointers registered with the given idr. The callback
       function will be called for each pointer currently registered, passing
       the id, the pointer and the data pointer passed to this function. It is
       not safe to modify the idr tree while in the callback, so functions
       such as idr_get_new and idr_remove are not allowed.

       We check the return of fn each time. If it returns anything other than
       0, we break out and return that value.

       The caller must serialize idr_for_each vs idr_get_new and idr_remove.

COPYRIGHT
Kernel Hackers Manual 3.11	 November 2013		       IDR_FOR_EACH(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