STRUCT F_GETHER_OPTS(9)
π 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β thenet_devicethat's associated with the subset function β¨.boundβtrueif thenet_deviceis shared and pre-registered during the legacy composite driver's bind phase (e.g.,multi.c). If it'sfalse, then the subset function will register thenet_deviceduring 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
- 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