February 1998
Intermediate to advanced
439 pages
13h 46m
English
Version 2.1.37 slightly modified the role of the bit operations
defined in <asm/bitops.h>. The function set_bit and its
relatives now return void, while new functions like
test_and_set_bit have been introduced. The new set of functions
have the following prototypes:
void set_bit(int nr, volatile void * addr); void clear_bit(int nr, volatile void * addr); void change_bit(int nr, volatile void * addr); int test_and_set_bit(int nr, volatile void * addr); int test_and_clear_bit(int nr, volatile void * addr); int test_and_change_bit(int nr, volatile void * addr); int test_bit(nr,addr);
If you want to be backward-compatible to 2.0, you can include
sysdep-2.1.h in your module and stick to the new prototypes.
Read now
Unlock full access