/
phprus
/
github_dpdk
Обзор
Документация
Войти
/
phprus
/
github_dpdk
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
lib/regexdev/rte_regexdev_driver.h
63 строки
1 KB
David Marchand
cleanup compat header inclusions
15 ноя 2022, 10:39
15 ноя 2022, 10:39
1094dd9
Код
Авторство
О чём код?
/* SPDX-License-Identifier: BSD-3-Clause * Copyright 2020 Mellanox Technologies, Ltd */ #ifndef _RTE_REGEXDEV_DRIVER_H_ #define _RTE_REGEXDEV_DRIVER_H_ /** * @file * * RTE RegEx Device PMD API * * APIs that are used by the RegEx drivers, to communicate with the * RegEx lib. */ #include <rte_compat.h> #include "rte_regexdev.h" #ifdef __cplusplus extern "C" { #endif /** * @internal * Register a RegEx device slot for a RegEx device and return the * pointer to that slot. * * @param name * RegEx device name. * * @return * A pointer to the RegEx device slot case of success, * NULL otherwise. */ __rte_internal struct rte_regexdev *rte_regexdev_register(const char *name); /** * @internal * Unregister the specified regexdev port. * * @param dev * Device to be released. */ __rte_internal void rte_regexdev_unregister(struct rte_regexdev *dev); /** * @internal * Return the RegEx device based on the device name. * * @param name * The device name. */ __rte_internal struct rte_regexdev *rte_regexdev_get_device_by_name(const char *name); #ifdef __cplusplus } #endif #endif /* _RTE_REGEXDEV_DRIVER_H_ */