Query: bitmap_ord_to_pos
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
BITMAP_ORD_TO_POS(9) Basic Kernel Library Functions BITMAP_ORD_TO_POS(9)NAMEbitmap_ord_to_pos - find position of n-th set bit in bitmapSYNOPSISint bitmap_ord_to_pos(const unsigned long * buf, int ord, int bits);ARGUMENTSbuf pointer to bitmap ord ordinal bit position (n-th set bit, n >= 0) bits number of valid bit positions in bufDESCRIPTIONMap 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.COPYRIGHTKernel Hackers Manual 2.6. July 2010 BITMAP_ORD_TO_POS(9)
Related Man Pages |
---|
bitmap_onto(9) - centos |
gsm(3) - debian |
bitmap_onto(9) - suse |
bitmap_remap(9) - suse |
hash32_buf(9) - netbsd |
Similar Topics in the Unix Linux Community |
---|
Is UNIX an open source OS ? |
Change directory error |
Getting command output to putty window title. |
Cut command on RHEL 6.8 compatibility issues |
SOCKS proxy & PAM configuration exposure |