binder_deferred_fd_close(9)
π binder_deferred_fd_close(9) β the NAME bit
okay so bestie, welcome to the Kernel API Manual β¨ and today's main character is binder_deferred_fd_close β no cap, it's literally the function that schedules a close for the given file-descriptor π
β¨ SYNOPSIS β¨
void binder_deferred_fd_close (int fd );
that's it. that's the whole vibe check. short, iconic, to the point π
π«Ά ARGUMENTS π«Ά
fdβ the file-descriptor you want to close. that's the one. the whole assignment πΈ
π¦ DESCRIPTION π¦
so like β for the deets, the original is fully just "See comments in binder_do_fd_close", which lowkey means go read the source if you want the full story π
what you do need to know though: this function is used to schedule a file-descriptor to be closed after returning from binder_ioctl. not immediately. later. after we come back out of binder_ioctl. that's the entire point of it existing, bestie β it's giving "deferred, not now, we'll get to it" energy β³
ngl please don't assume anything extra about how the deferring works β the page is like, extremely clear that the comments in binder_do_fd_close are where the lore lives. go read them π
π SEE ALSO π
this is the part where the manpage just. keeps. going. π like every single one of the binder homies shows up, plus the Kernel file ./drivers/android/binder.c β here's the full squad, nobody left behind:
binder_proc_lock(9)binder_proc_unlock(9)binder_inner_proc_lock(9)binder_inner_proc_unlock(9)binder_node_lock(9)binder_node_unlock(9)binder_node_inner_lock(9)binder_node_inner_unlock(9)binder_worklist_empty(9)binder_enqueue_work_ilocked(9)binder_enqueue_deferred_thread_work_ilocked(9)binder_enqueue_thread_work_ilocked(9)binder_enqueue_thread_work(9)binder_dequeue_work(9)binder_select_thread_ilocked(9)binder_wakeup_thread_ilocked(9)binder_inc_node_tmpref(9)binder_dec_node_tmpref(9)binder_get_ref_for_node_olocked(9)binder_inc_ref_olocked(9)binder_dec_ref_olocked(9)binder_get_node_from_ref(9)binder_free_ref(9)binder_update_ref_for_handle(9)binder_dec_ref_for_handle(9)binder_inc_ref_for_node(9)binder_thread_dec_tmpref(9)binder_proc_dec_tmpref(9)binder_get_txn_from(9)binder_get_txn_from_and_acq_inner(9)binder_free_txn_fixups(9)binder_cleanup_transaction(9)binder_get_object(9)binder_validate_ptr(9)binder_validate_fixup(9)struct binder_task_work_cb(9)binder_do_fd_close(9)struct binder_ptr_fixup(9)struct binder_sg_copy(9)binder_do_deferred_txn_copies(9)binder_cleanup_deferred_txn_lists(9)binder_defer_copy(9)binder_add_fixup(9)binder_can_update_transaction(9)binder_find_outdated_transaction_ilocked(9)binder_proc_transaction(9)binder_get_node_refs_for_txn(9)binder_netlink_report(9)binder_free_buf(9)binder_apply_fd_fixups(9)print_next_binder_node_ilocked(9)
fr fr that's the whole list, ate and left no crumbs π₯
and that's the page, bestie π«Ά sourced straight from ./drivers/android, dated October 2026, filed under binder_deferred_fd_close(9) in the Kernel API Manual β mwah, go close some fds (eventually) πβ¨π
π¦ 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