mirror of
https://github.com/0xAX/linux-insides.git
synced 2025-01-03 04:10:56 +00:00
commit
deaca1334a
@ -20,7 +20,7 @@ So, the main goal of this part is to see how `bit arrays` are implemented in the
|
|||||||
Declaration of bit array
|
Declaration of bit array
|
||||||
================================================================================
|
================================================================================
|
||||||
|
|
||||||
Before we will look on `API` for bitmaps manipulation, we must know how to declare it in the Linux kernel. There are two common method to declare own bit array. The first simple way to declrae a bit array is to array of `unsigned long`. For example:
|
Before we will look on `API` for bitmaps manipulation, we must know how to declare it in the Linux kernel. There are two common method to declare own bit array. The first simple way to declare a bit array is to array of `unsigned long`. For example:
|
||||||
|
|
||||||
```C
|
```C
|
||||||
unsigned long my_bitmap[8]
|
unsigned long my_bitmap[8]
|
||||||
|
Loading…
Reference in New Issue
Block a user