gether_get_dev_addr(9)
β¨ NAME β¨
gether_get_dev_addr β get an ethernet-over-usb link eth address
okay bestie, this is the Kernel API Manual entry for gether_get_dev_addr, and it's literally the lil function that hands you the device-side eth address for an ethernet-over-usb link π
πΈ SYNOPSIS πΈ
int gether_get_dev_addr (struct net_device *net , char *dev_addr , int
len );
π ARGUMENTS π
netβ the device representing this link, bestie. that's your main character struct π«Άdev_addrβ the place to store the device's eth address β¨lenβ the length of thedev_addrbuffer, so pls don't let it overflow, iykyk π
π¦ DESCRIPTION π¦
so this one gets the device-side Ethernet address of this ethernet-over-usb link. that's the vibe π
it returns zero on success, else a negative errno. periodt. no cap.
like, if you get a negative number back, that's your sign something went sideways β not me being dramatic, that's just the API π
π₯ SEE ALSO π₯
kernel file: ./drivers/usb/gadget/function/u_ether.h
the whole friend group, fr fr:
gether_set_gadget(9)gether_attach_gadget(9)gether_detach_gadget(9)gether_set_dev_addr(9)gether_set_host_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)
mwah π this lil page lives under ./drivers/usb/gadget/function, stamped October 2026, and it's literally called gether_get_dev_addr(9) β byeee π«Άβ¨
π¦ 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