diff options
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -1615,8 +1615,12 @@ static void check_poison_obj(struct kmem_cache *cachep, void *objp) | |||
1615 | 1615 | ||
1616 | #if DEBUG | 1616 | #if DEBUG |
1617 | /** | 1617 | /** |
1618 | * slab_destroy_objs - call the registered destructor for each object in | 1618 | * slab_destroy_objs - destroy a slab and its objects |
1619 | * a slab that is to be destroyed. | 1619 | * @cachep: cache pointer being destroyed |
1620 | * @slabp: slab pointer being destroyed | ||
1621 | * | ||
1622 | * Call the registered destructor for each object in a slab that is being | ||
1623 | * destroyed. | ||
1620 | */ | 1624 | */ |
1621 | static void slab_destroy_objs(struct kmem_cache *cachep, struct slab *slabp) | 1625 | static void slab_destroy_objs(struct kmem_cache *cachep, struct slab *slabp) |
1622 | { | 1626 | { |
@@ -1661,7 +1665,11 @@ static void slab_destroy_objs(struct kmem_cache *cachep, struct slab *slabp) | |||
1661 | } | 1665 | } |
1662 | #endif | 1666 | #endif |
1663 | 1667 | ||
1664 | /* | 1668 | /** |
1669 | * slab_destroy - destroy and release all objects in a slab | ||
1670 | * @cachep: cache pointer being destroyed | ||
1671 | * @slabp: slab pointer being destroyed | ||
1672 | * | ||
1665 | * Destroy all the objs in a slab, and release the mem back to the system. | 1673 | * Destroy all the objs in a slab, and release the mem back to the system. |
1666 | * Before calling the slab must have been unlinked from the cache. The | 1674 | * Before calling the slab must have been unlinked from the cache. The |
1667 | * cache-lock is not held/needed. | 1675 | * cache-lock is not held/needed. |
@@ -3170,6 +3178,7 @@ EXPORT_SYMBOL(kmalloc_node); | |||
3170 | * kmalloc - allocate memory | 3178 | * kmalloc - allocate memory |
3171 | * @size: how many bytes of memory are required. | 3179 | * @size: how many bytes of memory are required. |
3172 | * @flags: the type of memory to allocate. | 3180 | * @flags: the type of memory to allocate. |
3181 | * @caller: function caller for debug tracking of the caller | ||
3173 | * | 3182 | * |
3174 | * kmalloc is the normal method of allocating memory | 3183 | * kmalloc is the normal method of allocating memory |
3175 | * in the kernel. | 3184 | * in the kernel. |