STRUCT F_NCM_OPTS(9)
π struct f_ncm_opts(9) π
okay bestie, welcome to the Kernel API Manual β¨ we're looking at struct f_ncm_opts and honestly? she's iconic. it's giving NCM function options and we're gonna get into every single field, no skips, no cap π
β¨ NAME β¨
struct f_ncm_opts β NCM function options π¦
β¨ SYNOPSIS β¨
struct f_ncm_opts {
struct usb_function_instance func_inst;
struct net_device *net;
int bind_count;
struct config_group *ncm_interf_group;
struct usb_os_desc ncm_os_desc;
char ncm_ext_compat_id[16];
struct mutex lock;
int refcnt;
u16 max_segment_size;
};
look at her. perfect. no notes π₯
β¨ Members β¨
func_instβ the USB function instance π«Ά like, the actual USB function vibe right here.netβ thenet_devicethat's associated with the NCM function. that's her network device, she's attached πbind_countβ tracks how many configurations the NCM function is bound to, and it's lowkey doing important work: it prevents double-registration of the net device π like, not me registering the net device twice... couldn't be her.ncm_interf_groupβ the ConfigFS group for the NCM interface πncm_os_descβ the USB OS descriptor for NCM β¨ncm_ext_compat_idβ the extended compatibility ID πlockβ protects the data from concurrent access by configfsread/writeand create symlink/remove symlink operations π she's the bodyguard, the main character energy, keeping everybody from touching the data at the same time.refcntβ reference counter for the function instance, literally counting her refs πmax_segment_sizeβ maximum segment size πΈ
π SEE ALSO π
Kernel file ./drivers/usb/gadget/function/u_ncm.h β go read it, iykyk π
okay that's the whole struct, every member accounted for, nothing skipped, we ate and left no crumbs π β¨
and that's a wrap bestie!! π this page came to you from ./drivers/usb/gadget/function and it's dated October 2026 β mwah, love you, go forth and bind your NCM functions responsibly ππ¦π
π¦ 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