STRUCT WWAN_DEVICE(9)
π struct wwan_device(9) β the Kernel API Manual, bestie edition β¨
Okay so like, hi, welcome to the struct wwan_device(9) page from the Kernel API Manual π this is the ~iconic~ little struct that defines a WWAN device, and honestly she's giving main character energy. Let's get into it π¦
β¨ NAME β¨
struct wwan_device β the structure that defines a WWAN device π
πΈ SYNOPSIS πΈ
struct wwan_device {
unsigned int id;
int refcount;
struct device dev;
const struct wwan_ops *ops;
void *ops_ctxt;
#ifdef CONFIG_WWAN_DEBUGFS;
struct dentry *debugfs_dir;
#endif;
};
Like, that's the whole blueprint, bestie. Every field, exactly as it lives. No notes. Periodt. π
π Members π
idβ the WWAN device's unique ID, like its very own username that nobody else can have π₯refcountβ the reference count of this WWAN device. The way that this works is: when this refcount reaches zero, the device gets deleted π that's the whole lifecycle, no cap.
NB: access is protected by the global wwan_register_lock mutex. Like, do not touch it outside that lock, fr fr. Respect the mutex. π
devβ the underlying device underneath it all, the ~foundation~ of the vibe π«Άopsβ the wwan device ops. Yep. That's the ops. πops_ctxtβ the context to pass to thoseops. Little care package for the ops, iconic πdebugfs_dirβ the WWAN device debugfs dir β¨ (this one only shows up whenCONFIG_WWAN_DEBUGFSis defined, iykyk)
π¦ SEE ALSO π¦
- Kernel file
./drivers/net/wwan/wwan_core.c struct wwan_port(9)wwan_register_ops(9)wwan_unregister_ops(9)
Like, go read those next, they're literally the rest of the lore π
aaaand that's the page, bestie π this cutie lives over at ./drivers/net/wwan, stamped October 2026, and the page itself is struct wwan_device(9) β so next time someone asks, you already know. Slay πΈπ
π¦ 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