Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 2015 17:49:38 +0200
From:      Mateusz Guzik <mjguzik@gmail.com>
To:        Mario Lobo <lobo@bsd.com.br>
Cc:        Gary Jennejohn <gljennjohn@gmail.com>, emulation@FreeBSD.org
Subject:   Re: Linux epoll implementation
Message-ID:  <20150920154937.GA27493@dft-labs.eu>
In-Reply-To: <20150920124035.6e1c5539@Papi>
References:  <20150919130625.4d3897f8@Papi> <20150920130326.4014e853@ernst.home> <20150920124035.6e1c5539@Papi>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 20, 2015 at 12:40:35PM -0300, Mario Lobo wrote:
> > > I'm trying to compile this epoll implementation into the kernel
> > > following
> > > 
> > > https://wiki.freebsd.org/linux-kernel
> > > 
> > > The patch applies fine but when compiling the kernel, it stops at
> > > this:
> > > 
> > > /usr/src/sys/modules/linux/../../compat/linux/linux_epoll.c:66:10:
> > > error: implicit declaration of function 'kqueue' is invalid in C99
> > > [-Werror,-Wimplicit-function-declaration] 
> > > return (kqueue(td, &k_args));
> > > 
> > > 
> > NOTE: I'm referencing HEAD here.
> > 
> > epoll() is a system call (syscall), so it will be using the
> > kernel interfaces.
> > 
> > The only kqueue-related syscall with the same arguments is
> > sys_kqueue().  Try using that instead.
> > 
> 
> Yes! That solved the compilation problem. Tomorrow I'll test to see if
> the implementation works.
> 

epoll is already present in FreeBSD CURRENT (head) and likly with same
or better level of completness. The site in question is very outdated
and you are more than likely to run into trouble with this patch.

In short, I strongly recoomend you use freebsd current instead.

-- 
Mateusz Guzik <mjguzik gmail.com>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150920154937.GA27493>