1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2024-12-22 14:48:08 +00:00
This commit is contained in:
Chris Seto 2016-02-28 23:12:12 -05:00
parent 99138e0932
commit 6153b92ec2

View File

@ -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]