Discussion:
question about rtalloc1()
(too old to reply)
Jean-Yves Moulin
2008-03-03 14:03:34 UTC
Permalink
Hello,

I have made a software load-balancer in direct routing mode. It compile
and run as a kernel module with success on FreeBSD. I have done some
changes in order to compile it for NetBSD.

I can load my lkm but when loaded, the rtalloc1() function does'nt reply
as expected: the function never return and freeze the kernel. The same
code is working on freebsd..

So, my question is: can I call rtalloc1() inside a kernel module ? What
do I need to do in order to have this function working ?

I have only a netbsd-current with me. So, if this should be working on
netbsd-3, I will try.. (and sorry for this disturb :-(.

Thank you!

Greetings from Paris,

PS: the code is available here:
http://jym.free.fr/files/drlb-0.7.tar.gz. I will make a pkgsrc as soon
it will be working on NetBSD (I also need to clean my NetBSD patch).

jym

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Darren Reed
2008-03-09 12:22:47 UTC
Permalink
Hi Jean-Yves,

Is there a web page with more information about your project
or should I download it and look inside?

Thanks,
Darren


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Jean-Yves Moulin
2008-03-09 16:02:32 UTC
Permalink
I began to write a small explanation here:
http://jym.free.fr/?page_id=4

The archive is very small (32k). If you look inside, there is a file
lbdr.c in kmod repertory. This is the code for the kernel module. I
made some renaming for FreeBSD/NetBSD function (like mutex_enter() ==
mutex_lock()) with #define at line 215. I think that's not the best
choice.. I will change that later.

Thanks for the help. Ask me if needed.
jym
PS: That's my first in-kernel project. Please be nice :)
Post by Darren Reed
Hi Jean-Yves,
Is there a web page with more information about your project
or should I download it and look inside?
Thanks,
Darren
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...