gether_set_host_addr(9)
π gether_set_host_addr(9) π
okay so real talk, this one lives in the Kernel API Manual and it's literally the glow-up your ethernet-over-usb link's host address has been waiting for π
β¨ NAME β¨
gether_set_host_addr β bestie, this is the one that initializes an ethernet-over-usb link with the host address πΈ
π SYNOPSIS π
int gether_set_host_addr (struct net_device *net , const char *host_addr );
π¦ ARGUMENTS π¦
netβ the device representing this link, she's the main character here πhost_addrβ the eth address of the host, no cap π«Ά
π DESCRIPTION π
so what this does is it sets the host-side Ethernet address of this ethernet-over-usb link β but only if host_addr is correct. that's the vibe check β¨ if the new address is incorrect, it returns a negative errno π like it's not gonna let you embarrass yourself, periodt.
π₯ SEE ALSO π₯
- Kernel file
./drivers/usb/gadget/function/u_ether.h gether_set_gadget(9)gether_attach_gadget(9)gether_detach_gadget(9)gether_set_dev_addr(9)gether_get_dev_addr(9)gether_get_host_addr(9)gether_get_host_addr_cdc(9)gether_get_host_addr_u8(9)gether_set_qmult(9)gether_get_qmult(9)gether_get_ifname(9)gether_set_ifname(9)
ngl bestie, if you're poking around u_ether.h anyway, the whole gether/gether_get friend group above is right there β go say hi π
k that's the whole page π this lives under ./drivers/usb/gadget/function, and the version we're serving you is the October 2026 one β slay, go set some host addresses 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