From: j.neuschaefer@gmx.net (Jonathan Neuschäfer)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Kernel Module from C program
Date: Thu, 27 Oct 2011 18:29:06 +0200 [thread overview]
Message-ID: <20111027162906.GA1533@debian.debian> (raw)
In-Reply-To: <COL107-W4BEE60B90186B6353494CE7D20@phx.gbl>
On Thu, Oct 27, 2011 at 04:07:08PM +0000, Luis Morales wrote:
>
> Greetings,
>
>
>
> I'm new to the world of kernel modules programming. I've read the Linux Kernel Module Programming Guide by Peter Jay Salzman, among other documents, and I have the following question:
>
>
> I'd like to know if it's possible to take a program developed in C (in this case OpenSIPs, which is a SIP Proxy Server) and turn it into a kernel module (I know "to turn it" is probably not the right expression, what I mean is if I could modify it somehow so that it can be loaded as a kernel module) ?
>
>
> As far as I've understand, kernel modules are developed for drivers or to do some modifications to system calls, but I like to know if it's possible to do what I stated earlier.
>
> Thanks,
>
>
> Luis Morales.
As you can't use the usual user space libraries in the kernel, it might
take quite some time to port a user space program to the linux kernel
API. And I guess it wouldn't be a good idea from a security POV, as you
don't have things like memory protection in kernel space.
Thanks,
Jonathan Neusch?fer
prev parent reply other threads:[~2011-10-27 16:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <COL107-W6488DB47734F953F68F771E7D20@phx.gbl>
[not found] ` <COL107-W5865643E988CA558F9E252E7D20@phx.gbl>
2011-10-27 16:07 ` Kernel Module from C program Luis Morales
2011-10-27 16:29 ` Jonathan Neuschäfer [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=20111027162906.GA1533@debian.debian \
--to=j.neuschaefer@gmx.net \
--cc=kernelnewbies@lists.kernelnewbies.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.