lkml.org 
[lkml]   [1999]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectfind_first_zero_bit() vs ffz()
Hello,

I always thought that find_first_zero_bit() is for arbitrary length
bitmaps and ffz() is for 32bit length bitmaps (words).

But it seems that find_first_zero_bit() doesn't work for >32 bit. Is it
supposed to?

I declare my bitmap as char *inode_map=kmalloc(128,GFP_KERNEL) and use
test_bit()/set_bit()/find_first_zero_bit() to manipulate it and it works
fine up until bit=31 (0-31) but not higher.

Any responses welcome,

Tigran.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.044 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site