Lines Matching full:block
24 * The **block size** of each block, measured in bytes.
31 It must be at least "block size" times "number of blocks" bytes long.
36 the block size must also be a multiple of N.
41 A thread that needs to use a memory block simply allocates it from a memory
42 slab. When the thread finishes with a memory block,
43 it must release the block back to the memory slab so the block can be reused.
48 when a memory block becomes available, it is given to the highest-priority
62 the first 4 bytes of each unused block provide the necessary linkage.
76 .. code-block:: c
89 .. code-block:: c
95 .. code-block:: c
99 Allocating a Memory Block
102 A memory block is allocated by calling :c:func:`k_mem_slab_alloc`.
105 for a memory block to become available, then fills it with zeroes.
106 A warning is printed if a suitable block is not obtained.
108 .. code-block:: c
119 Releasing a Memory Block
122 A memory block is released by calling :c:func:`k_mem_slab_free`.
124 The following code builds on the example above, and allocates a memory block,
127 .. code-block:: c
132 ... /* use memory block pointed at by block_ptr */