STRUCT WWAN_OPS(9)
π struct wwan_ops(9) β the Kernel API Manual, but make it fashion
okay bestie, so this page is literally all about struct wwan_ops β the WWAN device ops π¦. yes, ops as in operations, as in the little function-pointer squad that tells the kernel how to handle your WWAN netdev. it's giving "backstage pass to the whole device lifecycle" and honestly we're obsessed β¨
πΈ SYNOPSIS πΈ
here's the whole struct, copied exactly, no cap, don't come for me:
struct wwan_ops {
unsigned int priv_size;
void (*setup)(struct net_device *dev);
int (*newlink)(void *ctxt, struct net_device *dev, u32 if_id, struct
netlink_ext_ack *extack);
void (*dellink)(void *ctxt, struct net_device *dev, struct list_head
*head);
};
likeβ¦ four members. short and iconic. main character energy fr fr π
π Members π
priv_sizeβ the size of the private netdev data area π. yes it's just a number, yes it matters, it's how much room your private stuff gets to live in.setupβ set up a new netdev β¨. this is where the new netdev gets its lil makeover.newlinkβ register the new netdev π«Ά. takesvoid *ctxt,struct net_device *dev,u32 if_id, and astruct netlink_ext_ack *extack. it's the "welcome to the family" moment.dellinkβ remove the given netdev π. takesvoid *ctxt,struct net_device *dev, and astruct list_head *head. sad but necessary, we don't gatekeep deletions here.
π¦ SEE ALSO π¦
the whole friend group, iykyk:
- Kernel file
./include/linux/wwan.hβ the source of truth, go say hi π enum wwan_port_type(9)wwan_create_port(9)wwan_remove_port(9)wwan_port_rx(9)wwan_port_txoff(9)wwan_port_txon(9)wwan_port_get_drvdata(9)struct wwan_netdev_priv(9)
like, go read them, they're all slay in their own way π
anyway, that's the whole vibe β this came out of ./include/linux and it's dated October 2026, so mark your calendars bestie ποΈπ. slay, stay hydrated, and remember: the kernel loves you. 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