xemaclite_send_data(9)
π xemaclite_send_data β the kernel API manual page, bestie edition
okay so picture this: it's a Kernel API Manual page, the star of the show is xemaclite_send_data(9), and I'm about to explain it to you like we're texting at 2am. let's go π
β¨ NAME β¨
xemaclite_send_data β literally just Send an Ethernet frame. that's the whole gig. icon behavior, no notes π
πΈ SYNOPSIS πΈ
int xemaclite_send_data (struct net_local *drvdata , u8 *data , unsigned
int byte_count );
she takes three things and hands you back an int. simple queen π
π¦ ARGUMENTS π¦
drvdataβ Pointer to the Emaclite device private data. this is her little bag of personal info, ok? the device's own private data, pointed at.dataβ Pointer to the data to be sent. the actual payload bestie, this is the moment.byte_countβ Total frame size, including header. total total. header included, don't forget the header or it's gonna be a whole thing π
π DESCRIPTION π
so what she does is: this function checks if the Tx buffer of the Emaclite device is free to send data. vibe check on the Tx buffer first, always π«Ά
If so, it fills the Tx buffer with data for transmission.
Otherwise, it returns an error. that's it. that's the function. she either slays or she says no π
β RETURN β
0upon success π-1if the buffer(s) are full π
literally two possibilities. 0 or -1. no in between, no "it depends", no main character ambiguity β¨
π NOTE π
The maximum Tx packet size can not be more than Ethernet header (14 Bytes) + Maximum MTU (1500 bytes). and that's excluding FCS. so do with that math what you will, but the math is mathing π₯
likeβ¦ 14 + 1500, and the FCS does not count toward it. noted. remembered. tattooed on my brain π§
π SEE ALSO π
the whole friend group, and I do mean the whole friend group β no one gets left out:
- Kernel file
./drivers/net/ethernet/xilinx/xilinx_emaclite.c struct net_local(9)xemaclite_enable_interrupts(9)xemaclite_disable_interrupts(9)xemaclite_aligned_write(9)xemaclite_aligned_read(9)xemaclite_recv_data(9)xemaclite_update_address(9)xemaclite_set_mac_address(9)xemaclite_tx_timeout(9)xemaclite_tx_handler(9)xemaclite_rx_handler(9)xemaclite_interrupt(9)xemaclite_mdio_wait(9)xemaclite_mdio_read(9)xemaclite_mdio_write(9)xemaclite_mdio_setup(9)xemaclite_adjust_link(9)xemaclite_open(9)xemaclite_close(9)xemaclite_send(9)get_bool(9)xemaclite_ethtools_get_drvinfo(9)xemaclite_of_probe(9)xemaclite_of_remove(9)
and that's the page!! π sign-off time: this came from ./drivers/net/ethernet/xilinx, dated October 2026, and it's filed under xemaclite_send_data(9) β ok bye, go send some frames responsibly, ily π«Άβ¨
π¦ 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