STRUCT MLX5_FPGA_CONN_ATTR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct mlx5_fpga_conn_attr(9) β€” the Kernel API Manual glow-up

okay so bestie, you're looking at struct mlx5_fpga_conn_attr β€” the FPGA connection attributes struct ✨ It literally just describes the attributes of a connection. that's the whole vibe. it's giving "settings page for your FPGA connection" πŸŽ€


🌸 NAME 🌸

struct mlx5_fpga_conn_attr β€” FPGA connection attributes. Describes the attributes of a connection. that's it, that's the girl πŸ’…


✨ SYNOPSIS ✨

struct mlx5_fpga_conn_attr {
    unsigned int tx_size;
    unsigned int rx_size;
    void (*recv_cb)(void *cb_arg, struct mlx5_fpga_dma_buf *buf);
    void *cb_arg;
 };

πŸ¦‹ Members πŸ¦‹ (the actual cast of characters)

  • tx_size β€” size of the connection TX queue, measured in packets πŸ“€ like, how many packets your transmit queue can hold. iconic.
  • rx_size β€” size of the connection RX queue, measured in packets πŸ“₯ same energy, receive side.
  • recv_cb β€” the callback function that gets called for received packets πŸ”” yeah she's the one doing the work when stuff arrives:
    • cb_arg: the value you provided in mlx5_fpga_conn_attr.cb_arg
    • buf: a buffer containing a received packet
πŸ’€ important caveat bestie: buf is guaranteed to only contain a single scatter-gather entry. The size of the actual packet received is specified in buf.sg[0].size. And when this callback returns, the packet buffer may be re-used for subsequent receives β€” so don't go holding onto it like it's yours forever, it is NOT 😭
  • cb_arg β€” a context to be passed to the recv_cb callback 🫢 your little grab-bag of whatever you want handed back to you.

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, no cap 🌈 this one lives over at ./drivers/net/ethernet/mellano... (yes the original really does cut off like that, I don't make the rules πŸ™ˆ) and it's dated October 2026, filed under struct mlx5_fpga_conn_attr(9). mwah, go read your kernel headers bestie πŸ’–πŸŽ€πŸ§š

πŸ“¦ where this page comes from