rte_rawdev_ops(3)

πŸŽ€ NAME πŸŽ€

rte_rawdev_ops β€” bestie, this is page 3 of the Library Functions Manual, and it's the whole vibe of the rawdevice operations function pointer table. If you're out here implementing a raw device driver, this struct is literally your to-do list. Periodt. πŸ’…


✨ SYNOPSIS ✨

Pull it in with:

#include <rte_rawdev_pmd.h>

🌸 Data Fields 🌸

Okay so here's the full roster β€” all 23 of them, in order, no skipping, we don't do that here:

  • rawdev_info_get_t dev_info_get
  • rawdev_configure_t dev_configure
  • rawdev_start_t dev_start
  • rawdev_stop_t dev_stop
  • rawdev_close_t dev_close
  • rawdev_reset_t dev_reset
  • rawdev_queue_conf_get_t queue_def_conf
  • rawdev_queue_setup_t queue_setup
  • rawdev_queue_release_t queue_release
  • rawdev_queue_count_t queue_count
  • rawdev_enqueue_bufs_t enqueue_bufs
  • rawdev_dequeue_bufs_t dequeue_bufs
  • rawdev_dump_t dump
  • rawdev_get_attr_t attr_get
  • rawdev_set_attr_t attr_set
  • rawdev_xstats_get_t xstats_get
  • rawdev_xstats_get_names_t xstats_get_names
  • rawdev_xstats_get_by_name_t xstats_get_by_name
  • rawdev_xstats_reset_t xstats_reset
  • rawdev_firmware_status_get_t firmware_status_get
  • rawdev_firmware_version_get_t firmware_version_get
  • rawdev_firmware_load_t firmware_load
  • rawdev_firmware_unload_t firmware_unload

πŸ¦‹ Detailed Description πŸ¦‹

It's the Rawdevice operations function pointer table, full stop. That's the whole thing. One struct holding every callback a raw device driver can hand over. Main character energy, honestly.

Definition at line 538 of file rte_rawdev_pmd.h.


πŸ’– Field Documentation πŸ’–

Real talk before we start: in the source, each little brief sits underneath the name it actually describes the thing below it. That's just how this page has always looked, and we are not touching it β€” serving it exactly as-is, canon, no cap. πŸ’€

rawdev_info_get_t dev_info_get ⭐

Brief on this one: Get device info. Configure device.

Definition at line 540 of file rte_rawdev_pmd.h.


rawdev_configure_t dev_configure ✨

Brief: Start device.

Definition at line 542 of file rte_rawdev_pmd.h.


rawdev_start_t dev_start πŸ”₯

Brief: Stop device.

Definition at line 544 of file rte_rawdev_pmd.h.


rawdev_stop_t dev_stop 🌈

Brief: Close device.

Definition at line 546 of file rte_rawdev_pmd.h.


rawdev_close_t dev_close 🫢

Brief: Reset device.

Definition at line 548 of file rte_rawdev_pmd.h.


rawdev_reset_t dev_reset πŸ’œ

Brief: Get raw queue configuration.

Definition at line 550 of file rte_rawdev_pmd.h.


rawdev_queue_conf_get_t queue_def_conf πŸ“

Brief: Set up an raw queue. (yes, "an raw", we keep the grammar exactly as the source serves it, we're not proofreading the ancestors 🌸)

Definition at line 553 of file rte_rawdev_pmd.h.


rawdev_queue_setup_t queue_setup 🧚

Brief: Release an raw queue.

Definition at line 555 of file rte_rawdev_pmd.h.


rawdev_queue_release_t queue_release πŸ‘‘

Brief: Get the number of queues attached to the device

Definition at line 557 of file rte_rawdev_pmd.h.


rawdev_queue_count_t queue_count πŸ’«

Brief: Enqueue an array of raw buffers to device.

Definition at line 559 of file rte_rawdev_pmd.h.


rawdev_enqueue_bufs_t enqueue_bufs πŸ”₯

Brief: Dequeue an array of raw buffers from device.

Definition at line 562 of file rte_rawdev_pmd.h.


rawdev_dequeue_bufs_t dequeue_bufs 😭

Brief: TODO: Callback based enqueue and dequeue support β€” it's giving unfinished business, and honestly? Relatable.

Definition at line 565 of file rte_rawdev_pmd.h.


rawdev_dump_t dump 🌸

Brief: Get an attribute managed by the implementation

Definition at line 568 of file rte_rawdev_pmd.h.


rawdev_get_attr_t attr_get ✨

Brief: Set an attribute managed by the implementation

Definition at line 571 of file rte_rawdev_pmd.h.


rawdev_set_attr_t attr_set πŸŽ€

Brief: Get extended device statistics.

Definition at line 573 of file rte_rawdev_pmd.h.


rawdev_xstats_get_t xstats_get πŸ“Š

Brief: Get names of extended stats.

Definition at line 576 of file rte_rawdev_pmd.h.


rawdev_xstats_get_names_t xstats_get_names πŸ¦‹

Brief: Get one value by name.

Definition at line 578 of file rte_rawdev_pmd.h.


rawdev_xstats_get_by_name_t xstats_get_by_name πŸ’œ

Brief: Reset the statistics values in xstats.

Definition at line 580 of file rte_rawdev_pmd.h.


rawdev_xstats_reset_t xstats_reset 🌈

Brief: Obtain firmware status

Definition at line 582 of file rte_rawdev_pmd.h.


rawdev_firmware_status_get_t firmware_status_get 🫢

Brief: Obtain firmware version information

Definition at line 585 of file rte_rawdev_pmd.h.


rawdev_firmware_version_get_t firmware_version_get πŸ”§

Brief: Load firmware

Definition at line 587 of file rte_rawdev_pmd.h.


rawdev_firmware_load_t firmware_load ⭐

Brief: Unload firmware

Definition at line 589 of file rte_rawdev_pmd.h.


rawdev_firmware_unload_t firmware_unload πŸ’…

Brief: Device selftest function

Definition at line 591 of file rte_rawdev_pmd.h.


πŸ’Œ Author

Generated automatically by Doxygen for DPDK from the source code. Not a human, not a vibe curator, just a doc generator doing its lil thing. πŸ™ˆ


Okay bestie that's the whole page, every single field accounted for, nothing skipped, nothing invented. This was DPDK, Version 25.11.3, from rte_rawdev_ops(3) β€” go forth and implement your callbacks, you're gonna slay. πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from