binder_alloc_new_buf(9)
π
binder_alloc_new_buf(9) β Kernel API Manual edition β¨
okay bestie, this is the Kernel API Manual page for binder_alloc_new_buf(9), and we are literally here to allocate a new binder buffer. main character energy only. π«Ά
π NAME π
binder_alloc_new_buf β Allocate a new binder buffer.
β¨ SYNOPSIS β¨
struct binder_buffer * binder_alloc_new_buf (struct binder_alloc *alloc
, size_t data_size , size_t offsets_size , size_t extra_buffers_size ,
int is_async );
π ARGUMENTS π
allocβ thebinder_allocfor this proc, iykyk.data_sizeβ size of user data buffer.offsets_sizeβ user specified buffer offset.extra_buffers_sizeβ size of extra space for meta-data (eg, security context).is_asyncβ buffer for async transaction.
πΈ DESCRIPTION πΈ
so basically you give it the requested sizes, and it allocates a new buffer. it returns the kernel version of the buffer pointer. The size allocated is the sum of the three given sizes (each rounded up to pointer-sized boundary). not me doing math in public, but that's the vibe. π
π RETURN π
The allocated buffer, or ERR_PTR(-errno) if error. that's the slay-or-nay outcome, fr fr. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/android/binder_alloc.c binder_alloc_prepare_to_free(9)binder_alloc_get_page(9)binder_alloc_clear_buf(9)binder_alloc_free_buf(9)binder_alloc_mmap_handler(9)binder_alloc_print_allocated(9)binder_alloc_print_pages(9)binder_alloc_get_allocated_count(9)binder_alloc_vma_close(9)binder_alloc_free_page(9)binder_alloc_init(9)check_buffer(9)binder_alloc_copy_user_to_buffer(9)
this page was brought to you by source/version ./drivers/android, dated October 2026, and page binder_alloc_new_buf(9) β mwah, bye bestie! ππ¦
π¦ 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