rte_port_fd.h(3)

πŸ’– rte_port_fd.h πŸ’–

okay bestie, welcome to the rte_port_fd.h page β€” that's the header from the Library Functions Manual, and it's literally all about the RTE Port FD Device. pull up a chair, we're getting into file-descriptor-based ports and it's giving very much "small header, big energy" ✨


🌸 NAME 🌸

rte_port_fd.h β€” no cap, that's the whole name, that's the whole vibe 🫢


✨ SYNOPSIS ✨

#include <stdint.h>
#include 'rte_port.h'

πŸŽ€ Data Structures

  • struct rte_port_fd_reader_params
  • struct rte_port_fd_writer_params
  • struct rte_port_fd_writer_nodrop_params

πŸ¦‹ Variables

  • struct rte_port_in_ops rte_port_fd_reader_ops
  • struct rte_port_out_ops rte_port_fd_writer_ops
  • struct rte_port_out_ops rte_port_fd_writer_nodrop_ops

three structs, three ops variables, perfectly balanced, as all things should be πŸ’…


πŸ‘‘ Detailed Description πŸ‘‘

RTE Port FD Device β€” that's the main character energy of this whole header fr fr.

  • fd_reader: an input port built on top of a valid non-blocking file descriptor πŸ”₯
  • fd_writer: an output port built on top of a valid non-blocking file descriptor πŸ”₯
heads up bestie: both of those are built on a valid non-blocking file descriptor β€” that's literally the requirement, don't come at it with a blocking fd, it's not that girl πŸ™ˆ

Definition in file rte_port_fd.h.


⭐ Variable Documentation ⭐

🧚 struct rte_port_in_ops rte_port_fd_reader_ops [extern]

fd_reader port operations πŸ’– this is the ops struct for the reader side, periodt.

🌈 struct rte_port_out_ops rte_port_fd_writer_ops [extern]

fd_writer port operations πŸ’– the ops struct for the writer side, slay.

πŸ“ struct rte_port_out_ops rte_port_fd_writer_nodrop_ops [extern]

fd_writer_nodrop port operations πŸ’– the ops struct for the writer side that does not drop β€” iconic behaviour honestly.


🫢 Author 🫢

Generated automatically by Doxygen for DPDK from the source code. not me getting auto-generated by a documentation tool, lowkey relatable 😭


and that's the whole page, bestie β€” you ate it, no crumbs πŸ’œ this was DPDK Version 25.11.3, and we were reading rte_port_fd.h(3) the whole time. go forth and fd, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from