ether_addr_to_u64(9)
π ether_addr_to_u64
okay bestie, welcome to the Linux Kernel API Manual β¨ this one's a tiny little icon, and honestly? it eats. no cap.
πΈ NAME
ether_addr_to_u64 β Convert an Ethernet address into a u64 value. that's it. that's the whole job. she takes your MAC and hands you back one chunky 64-bit number π
π¦ SYNOPSIS
u64 ether_addr_to_u64 (const u8 *addr );
π ARGUMENTS
addrβ Pointer to a six-byte array containing the Ethernet address. six bytes, bestie. count 'em. that's the whole vibe check right there π
β RETURN
a u64 value of the address π₯ β lowkey just your ethernet address but in Big Number form
π SEE ALSO
okay so this function literally runs with the entire friend group, and the whole squad lives in the kernel file ./include/linux/etherdevice.h π«Ά here's everyone, no one left out:
is_link_local_ether_addr(9)is_zero_ether_addr(9)is_multicast_ether_addr(9)is_local_ether_addr(9)is_broadcast_ether_addr(9)is_unicast_ether_addr(9)is_valid_ether_addr(9)eth_proto_is_802_3(9)eth_random_addr(9)eth_broadcast_addr(9)eth_zero_addr(9)eth_hw_addr_random(9)eth_hw_addr_crc(9)ether_addr_copy(9)eth_hw_addr_set(9)eth_hw_addr_inherit(9)ether_addr_equal(9)ether_addr_equal_64bits(9)ether_addr_equal_unaligned(9)ether_addr_equal_masked(9)u64_to_ether_addr(9)eth_addr_dec(9)eth_addr_inc(9)eth_addr_add(9)is_etherdev_addr(9)compare_ether_header(9)eth_hw_addr_gen(9)eth_skb_pkt_type(9)eth_skb_pad(9)
bestie note: u64_to_ether_addr(9) is literally her reverse-situationship. they're a matched set. iykyk π
β¨ and that's the page!! sign-off time: this lil cutie lives in the kernel source at ./include/linux π, the manual's dated October 2026 ποΈ, and it's part of the Kernel API Manual family. slay, bye π§π
π¦ 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