__ntfs_malloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __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 allocate
  • gfp_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 πŸ¦‹


cute little sign-off: source/version is ./fs/ntfs, dated October 2026, for __ntfs_malloc(9) β€” mwah πŸ’‹

πŸ“¦ where this page comes from