wwan_register_ops(9)
π NAME π
wwan_register_ops β okay so this is the one that registers your WWAN device ops β¨
Yes bestie, it's the Kernel API Manual section 9, and it's lowkey iconic.
π SYNOPSIS π
int wwan_register_ops (struct device *parent , const struct wwan_ops *ops , void *ctxt , u32 def_link_id );
That's the whole vibe check right there, no cap π
π¦ ARGUMENTS π¦
parentβ the device you're using as parent, and it's shared by every single WWAN port and every netdev that gets created. One parent, whole friend group π«Άopsβ the operations you're registering. Like, the actual ops. Drop them here β¨ctxtβ context that gets passed to the operations. Little backpack of stuff they carry around πdef_link_idβ the id of the default link that the WWAN core is gonna automatically create for the WWAN device, no effort required from you π
β οΈ Important one, bestie: the default link will not be created if the value you pass is WWAN_NO_DEFAULT_LINK. That's the "actually never mind" option π
π RETURN π
0 on success β slay, we ate π a negative error code on failure β we do not talk about those π
π SEE ALSO π
- Kernel file
./drivers/net/wwan/wwan_core.c struct wwan_device(9)struct wwan_port(9)wwan_unregister_ops(9)β the breakup arc, go read it too π
Okay that's the whole page, go forth and register responsibly. This little gem lives over in ./drivers/net/wwan, it's dated October 2026, and its full glow-up name is wwan_register_ops(9). Mwah ππΈ
π¦ 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