rte_bus_vdev.h(3)

πŸ’– NAME πŸ’–

okay so bestie, this is the manual page for rte_bus_vdev.h β€” it's part of the Library Functions Manual (section 3, iykyk), and it's your whole guide to the virtual bus API. πŸ¦‹


✨ SYNOPSIS ✨

🌸 Functions 🌸

int rte_vdev_add_custom_scan (rte_vdev_scan_callback callback, void *user_arg)
int rte_vdev_remove_custom_scan (rte_vdev_scan_callback callback, void *user_arg)
int rte_vdev_init (const char *name, const char *args)
int rte_vdev_uninit (const char *name)

πŸ’… Detailed Description πŸ’…

RTE virtual bus API, periodt. πŸŽ€

Definition in file rte_bus_vdev.h. (yes, the header is documenting itself, main character energy fr fr)


πŸ‘‘ Function Documentation πŸ‘‘

🫢 int rte_vdev_add_custom_scan (rte_vdev_scan_callback callback, void *user_arg)

okay so this one adds a callback that gets called on vdev scan before reading the devargs list. πŸ’–

⚠️ bestie, listen: this function cannot be called in a scan callback because of deadlock. like, do not do that. not the vibe. πŸ’€

Parameters

  • callback β€” the function to be called, which can update the devargs list.
  • user_arg β€” an opaque pointer passed to callback.

Returns

  • 0 on success, negative on error

🧚 int rte_vdev_remove_custom_scan (rte_vdev_scan_callback callback, void *user_arg)

Removes a registered scan callback. bye bestie, we're unregistering you πŸ‘‹βœ¨

⚠️ same warning, same energy: this function cannot be called in a scan callback because of deadlock. πŸ”₯

Parameters

  • callback β€” the registered function to be removed.
  • user_arg β€” the associated opaque pointer or (void*)-1 for any.

Returns

  • 0 on success

🌈 int rte_vdev_init (const char * name, const char * args)

Initializes a driver specified by name. we're waking it up, slay 🌸

Parameters

  • name β€” the pointer to a driver name to be initialized.
  • args β€” the pointer to arguments used by driver initialization.

Returns

  • 0 on success, negative on error

πŸ“ int rte_vdev_uninit (const char * name)

Uninitializes a driver specified by name. it's giving "we're so done here" πŸ’…

Parameters

  • name β€” the pointer to a driver name to be uninitialized.

Returns

  • 0 on success, negative on error

⭐ Author ⭐

Generated automatically by Doxygen for DPDK from the source code. (not me writing this by hand, the robots did it, and honestly? iconic. πŸ€–βœ¨)


aaaaand that's the whole page bestie!! no cap, you now know the entire vdev bus API. this was DPDK, Version 25.11.3, manual page rte_bus_vdev.h(3) β€” go forth and initialize some drivers, mwah πŸ’‹πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from