/
phprus
/
github_dpdk
Обзор
Документация
Войти
/
phprus
/
github_dpdk
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
lib/vhost/fd_man.h
26 строк
553 B
Shani Peretz
vhost: fix use-after-free race during cleanup
05 мар 2026, 13:51
05 мар 2026, 13:51
73ea443
Код
Авторство
О чём код?
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2010-2014 Intel Corporation */ #ifndef _FD_MAN_H_ #define _FD_MAN_H_ #include <pthread.h> #include <poll.h> #include <sys/queue.h> struct fdset; #define MAX_FDS 1024 typedef void (*fd_cb)(int fd, void *dat, int *close); struct fdset *fdset_init(const char *name); int fdset_add(struct fdset *pfdset, int fd, fd_cb rcb, fd_cb wcb, void *dat); void fdset_del(struct fdset *pfdset, int fd); int fdset_try_del(struct fdset *pfdset, int fd); void fdset_destroy(struct fdset *pfdset); #endif