Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 2015 12:40:35 -0300
From:      Mario Lobo <lobo@bsd.com.br>
To:        Gary Jennejohn <gljennjohn@gmail.com>
Cc:        emulation@FreeBSD.org
Subject:   Re: Linux epoll implementation
Message-ID:  <20150920124035.6e1c5539@Papi>
In-Reply-To: <20150920130326.4014e853@ernst.home>
References:  <20150919130625.4d3897f8@Papi> <20150920130326.4014e853@ernst.home>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 20 Sep 2015 13:03:26 +0200
Gary Jennejohn <gljennjohn@gmail.com> wrote:

> On Sat, 19 Sep 2015 13:06:25 -0300
> Mario Lobo <lobo@bsd.com.br> wrote:
> 
> > Hi;
> > 
> > I'm trying to compile this epoll implementation into the kernel
> > following
> > 
> > https://wiki.freebsd.org/linux-kernel
> > 
> > using the patch provided.
> > 
> > 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));
> > 
> > 
> > That is the only reference to kqueue on the
> > patched code at /usr/src/sys/compat/linux/
> > 
> > This kqueue call is very different from the one provided in man
> > kqueue:
> > 
> > int kqueue(void);
> > 
> > so I really ran out of options on finding out what this kqueue call
> > really is about.
> > 
> > Would anyone have any pointers on this?
> > 
> 
> 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.

Thanks Gary!

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio.... YET!!]
 
"UNIX was not designed to stop you from doing stupid things, 
because that would also stop you from doing clever things."



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