All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel Module from C program
       [not found] ` <COL107-W5865643E988CA558F9E252E7D20@phx.gbl>
@ 2011-10-27 16:07   ` Luis Morales
  2011-10-27 16:29     ` Jonathan Neuschäfer
  0 siblings, 1 reply; 2+ messages in thread
From: Luis Morales @ 2011-10-27 16:07 UTC (permalink / raw)
  To: kernelnewbies


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. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111027/72587d93/attachment.html 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Kernel Module from C program
  2011-10-27 16:07   ` Kernel Module from C program Luis Morales
@ 2011-10-27 16:29     ` Jonathan Neuschäfer
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Neuschäfer @ 2011-10-27 16:29 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-27 16:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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 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.