STRUCT BINDER_FD_OBJECT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the Kernel API Manual page for struct binder_fd_object(9) β€” this is the iconic struct that describes a filedescriptor to be fixed up. πŸ’…


✨ SYNOPSIS ✨

here's the exact shape, no cap β€” every field, every semicolon, untouched:

       struct binder_fd_object {
           struct binder_object_header     hdr;
           __u32 pad_flags;
           union {
             binder_uintptr_t pad_binder;
             __u32 fd;
           };
           binder_uintptr_t cookie;
        };

πŸŽ€ Members πŸŽ€

  • hdr β€” common header structure. 🫢
  • pad_flags β€” padding to remain compatible with old userspace code. ✨
  • {unnamed_union} β€” anonymous. πŸŒ€ not me naming the unnamed union 😭
  • pad_binder β€” padding to remain compatible with old userspace code. πŸ’–
  • fd β€” file descriptor. πŸ“
  • cookie β€” opaque data, used by user-space. πŸͺ

🌈 SEE ALSO 🌈

  • Kernel file ./include/uapi/linux/android/binder.h struct
  • binder_object_header(9)

xoxo, signing off from source/version ./include/uapi/linux/android, dated October 2026 β€” literally the cutest source + date combo, mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from