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 tocallback.
Returns
0on 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*)-1for any.
Returns
0on 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
0on 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
0on 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
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms