__ntfs_malloc(9)
β¨ __ntfs_malloc(9) β¨
okay bestie, this one is straight from the Kernel API Manual β yes, that's the manual name β and it's all about __ntfs_malloc. lowkey iconic kernel memory behavior, no cap π
πΈ NAME πΈ
__ntfs_malloc β allocate memory in multiples of pages π
β¨ SYNOPSIS β¨
void * __ntfs_malloc (unsigned long size , gfp_t gfp_mask );
π«Ά ARGUMENTS π«Ά
sizeβ number of bytes to allocategfp_maskβ extra flags for the allocator
π DESCRIPTION π
Internal function. You probably want ntfs_malloc_nofs... π
It allocates size bytes of memory, rounded up to multiples of PAGE_SIZE, and returns a pointer to the allocated memory. β¨
If there was insufficient memory to complete the request, it returns NULL. Depending on gfp_mask, the allocation may be guaranteed to succeed. π₯
π¦ SEE ALSO π¦
- Kernel file
./fs/ntfs/malloc.h ntfs_malloc_nofs(9)ntfs_malloc_nofs_nofail(9)
cute little sign-off: source/version is ./fs/ntfs, dated October 2026, for __ntfs_malloc(9) β mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms