[dpdk-dev] [PATCH v10 02/13] eal/linux: add rte_epoll_wait/ctl support

Stephen Hemminger shemming at brocade.com
Tue Jun 2 18:21:17 CEST 2015


On Tue,  2 Jun 2015 14:53:15 +0800
Cunming Liang <cunming.liang at intel.com> wrote:

> The patch adds 'rte_epoll_wait' and 'rte_epoll_ctl' for async event wakeup.
> It defines 'struct rte_epoll_event' as the event param.
> The 'op' uses the same enum as epoll_wait/ctl does.
> The epoll event support to carry a raw user data and to register a callback which is exectuted during wakeup.
> 
> Signed-off-by: Cunming Liang <cunming.liang at intel.com>


Minor polish comments, not blockers.


> +static inline int
> +eal_init_tls_epfd(void)
> +{
> +	int pfd = epoll_create(255);
> +	if (pfd < 0) {


Kernel style checker wants blank line after declaration here.

/
> +int
> +rte_epoll_ctl(int epfd, int op, int fd,
> +	      struct rte_epoll_event *event);
> +
> +/**
> + * The function returns the per thread epoll instance.
> + *
> + * @return
> + *   epfd the epoll instance refered to.

Spell check: 'refered' may be misspelled - perhaps 'referred'?



> + */
> +int
> +rte_intr_tls_epfd(void);


More information about the dev mailing list