From: Bart Trojanowski <bart@jukie.net>
To: Remko van der Vossen <remko.van.der.vossen@cmg.nl>
Cc: "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: PThreads in kernel module & network interface
Date: Wed, 4 Apr 2001 08:18:22 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.30.0104040812010.10013-100000@localhost> (raw)
In-Reply-To: <B569A4D2254ED2119FE500104BC1D5CD01294138@NL-EIN-MAIL01>
On Wed, 4 Apr 2001, Remko van der Vossen wrote:
> second problem is that when I use the PThread functions from this module I
> need the pthread library. As you probably know gcc doesn't link the pthread
> library into the module, so I tried to do that with ld, that in itself
> worked, I successfully linked the pthread library into the module I made,
The first problem you are running into is mixing user space with kernel
code. You cannot use pthreads in the kernel... not directly anyways. You
could use kernel_thread() instead.
If your future stack will have a BSD socket interface you could prototype
your server in user space - and use pthreads. If you don't want the
interface then you can hook into the stack directly by using the sock_*
functions (see include/linux/net.h). You will probably get everything you
need to start you off from an article by Alessandro Rubini at the Linux
Magazine: http://www.linux-mag.com/2000-12/gear_01.html
> Thank you in advance,
Cheers,
Bart.
--
WebSig: http://www.jukie.net/~bart/sig/
prev parent reply other threads:[~2001-04-04 12:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-04 7:34 Remko van der Vossen
2001-04-04 12:18 ` Bart Trojanowski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.30.0104040812010.10013-100000@localhost \
--to=bart@jukie.net \
--cc=linux-kernel@vger.kernel.org \
--cc=remko.van.der.vossen@cmg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®