WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
osal_bitmap

函数

void osal_bitmap_set_bit (int nr, unsigned long *addr)
 Used to set bit for bitmap.
 
void osal_bitmap_clear_bit (int nr, unsigned long *addr)
 Used to clear bit for bitmap.
 
void osal_bitmap_change_bit (int nr, unsigned long *addr)
 Used to change bit for bitmap.
 
int osal_bitmap_test_bit (int nr, unsigned long *addr)
 Tests whether a given bit in an array of bits is set.
 
int osal_bitmap_test_and_set_bit (int nr, unsigned long *addr)
 Set bit and return old value.
 
int osal_bitmap_test_and_clear_bit (int nr, unsigned long *addr)
 Clear bit and return old value.
 
int osal_bitmap_test_and_change_bit (int nr, unsigned long *addr)
 Change bit and return old value.
 
int osal_bitmap_find_first_zero_bit (const unsigned long *name, unsigned size)
 find the first cleared bit in a memory region.
 
int osal_bitmap_find_first_bit (const unsigned long *name, unsigned size)
 find the first set bit in a memory region.
 
int osal_bitmap_find_next_zero_bit (const unsigned long *name, int size, int offset)
 find the next cleared bit in a memory region.
 
int osal_bitmap_find_next_bit (const unsigned long *name, unsigned size, int offset)
 find the next set bit in a memory region.
 

详细描述

函数说明

◆ osal_bitmap_change_bit()

void osal_bitmap_change_bit ( int  nr,
unsigned long *  addr 
)

Used to change bit for bitmap.

Description:
Used to change bit for bitmap.
参数
nr[in] bit number in bit array.
addr[in] address of the bit array to be change.
Support System:
linux.

◆ osal_bitmap_clear_bit()

void osal_bitmap_clear_bit ( int  nr,
unsigned long *  addr 
)

Used to clear bit for bitmap.

Description:
Used to clear bit for bitmap.
参数
nr[in] bit number in bit array.
addr[in] address of the bit array to be clear.
Support System:
linux.

◆ osal_bitmap_find_first_bit()

int osal_bitmap_find_first_bit ( const unsigned long *  name,
unsigned  size 
)

find the first set bit in a memory region.

Description:
find the first set bit in a memory region.
参数
name[in] The name to base the search on.
size[in] The bitmap size in bits.
返回
The position of first set bit in *addr
Support System:
linux.

◆ osal_bitmap_find_first_zero_bit()

int osal_bitmap_find_first_zero_bit ( const unsigned long *  name,
unsigned  size 
)

find the first cleared bit in a memory region.

Description:
find the first cleared bit in a memory region.
参数
name[in] The name to base the search on.
size[in] The bitmap size in bits.
返回
The position of first zero bit in *addr
Support System:
linux.

◆ osal_bitmap_find_next_bit()

int osal_bitmap_find_next_bit ( const unsigned long *  name,
unsigned  size,
int  offset 
)

find the next set bit in a memory region.

Description:
find the next set bit in a memory region.
参数
name[in] The name to base the search on.
size[in] The bitmap size in bits.
offset[in] The bitnumber to start searching at.
返回
The position of next set bit in *addr >= bit
Support System:
linux.

◆ osal_bitmap_find_next_zero_bit()

int osal_bitmap_find_next_zero_bit ( const unsigned long *  name,
int  size,
int  offset 
)

find the next cleared bit in a memory region.

Description:
find the next cleared bit in a memory region.
参数
name[in] The name to base the search on.
size[in] The bitmap size in bits.
offset[in] The bitnumber to start searching at.
返回
The position of next zero bit in *addr >= bit
Support System:
linux.

◆ osal_bitmap_set_bit()

void osal_bitmap_set_bit ( int  nr,
unsigned long *  addr 
)

Used to set bit for bitmap.

Description:
Used to set bit for bitmap.
参数
nr[in] bit number in bit array.
addr[in] address of the bit array to be set.
Support System:
linux.

◆ osal_bitmap_test_and_change_bit()

int osal_bitmap_test_and_change_bit ( int  nr,
unsigned long *  addr 
)

Change bit and return old value.

Description:
Change bit and return old value.
参数
nr[in] bit number in bit array.
addr[in] address of the bit array to be change.
返回
return old value.
Support System:
linux.

◆ osal_bitmap_test_and_clear_bit()

int osal_bitmap_test_and_clear_bit ( int  nr,
unsigned long *  addr 
)

Clear bit and return old value.

Description:
Clear bit and return old value.
参数
nr[in] bit number in bit array.
addr[in] address of the bit array to be change.
返回
return old value.
Support System:
linux.

◆ osal_bitmap_test_and_set_bit()

int osal_bitmap_test_and_set_bit ( int  nr,
unsigned long *  addr 
)

Set bit and return old value.

Description:
Set bit and return old value.
参数
nr[in] bit number in bit array.
addr[in] address of the bit array to be change.
返回
return old value.
Support System:
linux.

◆ osal_bitmap_test_bit()

int osal_bitmap_test_bit ( int  nr,
unsigned long *  addr 
)

Tests whether a given bit in an array of bits is set.

Description:
Tests whether a given bit in an array of bits is set.
参数
nr[in] bit number in bit array.
addr[in] address of the bit array to be change.
返回
true/false
Support System:
linux.