STRUCT F_GETHER_OPTS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct f_gether_opts β€” subset function options, bestie ✨ and yup, this is the struct f_gether_opts(9) page from the Kernel API Manual 🫢.

🌈 SYNOPSIS 🌈

struct f_gether_opts {
    struct usb_function_instance    func_inst;
    struct net_device               *net;
    bool bound;
    int bind_count;
    struct mutex                    lock;
    int refcnt;
};

πŸ¦‹ Members πŸ¦‹

  • func_inst β€” the USB function instance, periodt πŸ’….
  • net β€” the net_device that's associated with the subset function ✨.
  • bound β€” true if the net_device is shared and pre-registered during the legacy composite driver's bind phase (e.g., multi.c). If it's false, then the subset function will register the net_device during its own bind phase πŸ”₯.
  • bind_count β€” tracks the number of configurations the subset function is bound to, preventing double-registration of the net device πŸ‘‘.
  • lock β€” protects the data from concurrent access by configfs read/write and create symlink/remove symlink operations πŸŽ€.
  • refcnt β€” the reference counter for the function instance 🌸.

⭐ SEE ALSO ⭐

  • Kernel file β€” ./drivers/usb/gadget/function/u_gether.h πŸ”—

xoxo, bestie πŸ’– β€” source/version: ./drivers/usb/gadget/function Β· date: October 2026 πŸŒ™

πŸ“¦ where this page comes from