centos man page for ksize

Query: ksize

OS: centos

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

KSIZE(9)						    Memory Management in Linux							  KSIZE(9)

NAME
ksize - get the actual amount of memory allocated for a given object
SYNOPSIS
size_t ksize(const void * objp);
ARGUMENTS
objp Pointer to the object
DESCRIPTION
kmalloc may internally round up allocations and return more memory than requested. ksize can be used to determine the actual amount of memory allocated. The caller may use this additional memory, even though a smaller amount of memory was initially specified with the kmalloc call. The caller must guarantee that objp points to a valid object previously allocated with either kmalloc or kmem_cache_alloc. The object must not be freed during the duration of the call.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 KSIZE(9)
Related Man Pages
bio_alloc_bioset(9) - centos
kmalloc_array(9) - centos
kmem_alloc(9f) - sunos
kmem_zalloc(9f) - sunos
tapset::memory(3stap) - centos
Similar Topics in the Unix Linux Community
Tar: tape blocksize error
How to change blocksize for in tar command
tar: tape blocksize error
Tar blockSize problem
Optimum blocksize to clone a disk?