STRUCT WWAN_PORT(9)
π struct wwan_port β the whole vibe
okay so bestie, this is a page from the Kernel API Manual (that's the manual name, keep it in your notes π), and it's literally all about struct wwan_port β the structure that defines a WWAN port. yes. the structure. the blueprint. the main character. π«Ά
β¨ NAME β¨
struct wwan_port β the structure that defines a WWAN port π
π SYNOPSIS π
here's the whole thing, character for character, no cap:
struct wwan_port {
enum wwan_port_type type;
unsigned int start_count;
unsigned long flags;
const struct wwan_port_ops *ops;
struct mutex ops_lock;
struct device dev;
struct sk_buff_head rxq;
wait_queue_head_t waitqueue;
struct mutex data_lock;
size_t headroom_len;
size_t frag_len;
union {
struct {
struct ktermios termios;
int mdmbits;
} at_data;
struct gnss_device *gnss;
};
};
look at her. iconic. πΈ
π Members π
every single field, explained with love (and accuracy, obviously):
typeβ port type. which flavour of port this is, iykyk πstart_countβ the port start counter. she's counting, bestie.flagsβ stores port state and capabilities πopsβ pointer to WWAN port operationsops_lockβ protects port ops πdevβ underlying devicerxqβ buffer inbound queue (the queue where inbound stuff sits, vibing)waitqueueβ the waitqueue for port fops (read/write/poll), literally what fops wait on πdata_lockβ port specific data access serializationheadroom_lenβ SKB reserved headroom sizefrag_lenβ length to fragment packet{unnamed_union}β anonymous. that's it. that's the whole note. no name, no problem πat_dataβ AT port specific datagnssβ pointer to GNSS device associated with this port π°οΈ
ngl, the {unnamed_union} line is sending me β the manpage literally just says "anonymous" and moves on. respect. β
π SEE ALSO π
go read these next, bestie, they're in the same universe:
- Kernel file
./drivers/net/wwan/wwan_core.c struct wwan_device(9)wwan_register_ops(9)wwan_unregister_ops(9)
and that's the page! π§ source is ./drivers/net/wwan, dated October 2026, and it lives in the Kernel API Manual. mwah. 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