We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7df3dcf commit 5956b59Copy full SHA for 5956b59
docs/manual/en_US/allocpool.md
@@ -21,11 +21,11 @@ static char block[4096];
21
BFDEV_DEFINE_ALLOCPOOL(foo, block, sizeof(block));
22
23
/* initialize int allocpool named bar using malloc */
24
-struct bfdev_allocpool *bar;
+struct bfdev_allocpool bar;
25
void *block;
26
27
block = malloc(4096);
28
-bar = bfdev_allocpool_init(&bar, block, 4096);
+bfdev_allocpool_init(&bar, block, 4096);
29
```
30
31
Use the following functions to alloc and free in an allocpool:
@@ -40,5 +40,4 @@ int *foo;
40
41
foo = bfdev_allocpool_alloc(allocpool, 4, 0);
42
bfdev_allocpool_free(allocpool, foo);
43
-
44
0 commit comments