[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: socket and lkm




Hmmm... are you sure you want to do this in kernel space? I think a simpler
way to tackle this problem would be to perhaps create a proc filesystem
entry (that would show whatever information you want to be shown when it is
read) and in userspace to simply setup a cron job to once a month read that
file in /proc and mail the contents out to root.

On Sun, 31 Dec 2000, Perego Paolo wrote:
> Date: 	Sun, 31 Dec 2000 14:54:19 +0100
> To: 	Kernel Newbies Mailing List <kernelnewbies@humbolt.nl.linux.org>
> From: 	Perego Paolo <sponge@tiscalinet.it>
> Subject: socket and lkm
> 
> Hi guys! I want to put some feedback facilities to administrator in a lkm
> i'm
> writing. I just want the module sends an email to root ( e.g. every month
> )
> telling it's working and it's all ok.
> 
> How can I create a socket and playing with it as done in userspace in a
> kernel
> module? 
> Thnx a lot :)
> 
> Happy new year
> -- 
> $>cd /pub
> $>more beer
> 
> Perego Paolo <sponge@tiscalinet.it>
> Tutor at D.S.I. - University of Milan
> We can be heroes, just for one day.
> I'm Linux drow.underdark.net 2.4.0-test6 #5 mar dic 5 21:24:16 CET 2000
> i686
> 
> 
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.surriel.com/kernelnewbies.shtml