icssm_emac_rx_packet(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

icssm_emac_rx_packet β€” the EMAC Receive function, aka the little guy whose whole job is grabbing packets off the receive queue πŸŽ€

Ok so real talk, this is page icssm_emac_rx_packet(9) from the Kernel API Manual, and it is so much less scary than the name makes it sound. Sit with me bestie, we're gonna get through it together 🫢


✨ SYNOPSIS ✨

int icssm_emac_rx_packet (struct prueth_emac *emac , u16 *bd_rd_ptr ,
struct prueth_packet_info *pkt_info , const struct prueth_queue_info
*rxqueue );

Like, yes, that's a whole lot of asterisks in one line 😭 but it's just four pointers and an int coming back at you. That's it. That's the whole vibe check and it passed πŸ’…


🌸 ARGUMENTS 🌸

  • emac β€” the EMAC data structure πŸ’œ your main character, the whole reason we're here.
  • bd_rd_ptr β€” the Buffer descriptor read pointer πŸ¦‹ it's a u16 *, so she's pointing at a 16-bit value, no cap.
  • pkt_info β€” the packet information structure πŸŽ€ this is where the packet tea gets stored.
  • rxqueue β€” the Receive queue information structure ✨ and note the const, she's read-only, don't even think about touching her.

πŸ”₯ DESCRIPTION πŸ”₯

Get a packet from receive queue.

That's the whole thing, bestie. That's the assignment. It literally just goes and fetches a packet out of the receive queue and hands it over 😌 iconic behaviour, honestly. No drama, no surprises, just receive-queue-to-you pipeline realness πŸ’…


⭐ RETURN ⭐

Returns 0 β€” that's Success 🌈 so if you see a 0 come back, everything ate and left no crumbs πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

The kernel file lives at ./drivers/net/ethernet/ti/icssm/icssm_prueth.c β€” go read it, iykyk πŸ“–

And here's the whole friend group, all of them (9) sections, all of them worth a look:


ngl if you only remember one thing: it takes four args, it returns 0 on success, and it pulls a packet off the receive queue. Slay 🫢

Ok byeee, this little page comes to you from the ./drivers/net/ethernet/ti/icssm corner of the world, dated October 2026, and it's filed under icssm_emac_rx_packet(9) πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from