bitmap_ord_to_pos man page on Oracle

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

BITMAP_ORD_TO_POS(9)	Basic Kernel Library Functions	  BITMAP_ORD_TO_POS(9)

NAME
       bitmap_ord_to_pos - find position of n-th set bit in bitmap

SYNOPSIS
       int bitmap_ord_to_pos(const unsigned long * buf, int ord, int bits);

ARGUMENTS
       buf
	   pointer to bitmap

       ord
	   ordinal bit position (n-th set bit, n >= 0)

       bits
	   number of valid bit positions in buf

DESCRIPTION
       Map the ordinal offset of bit ord in buf to its position in buf. Value
       of ord should be in range 0 <= ord < weight(buf), else results are
       undefined.

       If for example, just bits 4 through 7 are set in buf, then ord values 0
       through 3 will get mapped to 4 through 7, respectively, and all other
       ord values return undefined values. When ord value 3 gets mapped to
       (returns) pos value 7 in this example, that means that the 3rd set bit
       (starting with 0th) is at position 7 in buf.

       The bit positions 0 through bits are valid positions in buf.

COPYRIGHT
Kernel Hackers Manual 3.8.	   June 2014		  BITMAP_ORD_TO_POS(9)
[top]

List of man pages available for Oracle

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