STRUCT F_RNDIS_OPTS(9)
โจ struct f_rndis_opts(9) โจ
okay so bestie, this is the Kernel API Manual entry for struct f_rndis_opts โ it's giving โRNDIS function optionsโ and we're gonna go through every single field, no cap. ๐
๐ NAME ๐
struct f_rndis_opts โ RNDIS function options ๐ซถ
โจ SYNOPSIS โจ
struct f_rndis_opts {
struct usb_function_instance func_inst;
u32 vendor_id;
const char *manufacturer;
struct net_device *net;
int bind_count;
bool borrowed_net;
struct config_group *rndis_interf_group;
struct usb_os_desc rndis_os_desc;
char rndis_ext_compat_id[16];
u8 class;
u8 subclass;
u8 protocol;
struct mutex lock;
int refcnt;
};
๐ Members ๐
func_instโ the USB function instance, literally the main character of this struct. ๐ซvendor_idโ the Vendor ID. iconic number behavior. ๐ฅmanufacturerโ the Manufacturer string, cute little text pointer. ๐netโ thenet_deviceassociated with the RNDIS function. the whole networking vibe lives here. ๐bind_countโ tracks the number of configurations the RNDIS function is bound to, and it prevents double-registration of the net device. no duplicate era allowed. ๐ซborrowed_netโ true if thenet_deviceis shared and pre-registered during the legacy composite driver's bind phase (e.g.,multi.c). if false, the RNDIS function will register thenet_deviceduring its own bind phase. borrow responsibly, bestie. ๐ซถrndis_interf_groupโ the ConfigFS group for the RNDIS interface. group-chat but make it ConfigFS. ๐ฌrndis_os_descโ the USB OS descriptor for RNDIS. very descriptor, very USB. โจrndis_ext_compat_idโ the Extended compatibility ID. fancy name, fancy field. ๐classโ the USB class. โญsubclassโ the USB subclass. yes, it's a whole sub-vibe. ๐ฆprotocolโ the USB protocol. rules are rules. ๐lockโ protects the data from concurrent access by configfs read/write and create symlink/remove symlink operations. it's the bouncer at the club, fr fr. ๐refcntโ reference counter for the function instance. count the refs, bestie. ๐งฎ
๐ SEE ALSO ๐
- Kernel file
./drivers/usb/gadget/function/u_rndis.hโ go read it, iykyk. ๐
mwah ๐ โ that's the whole page, and it came from the Kernel API Manual, with source/version ./drivers/usb/gadget/function, dated October 2026, and it's literally titled struct f_rndis_opts(9). periodt. ๐
๐ฆ 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