Re: Fwd: storing the logs

2011-02-09 Thread Ashok Babu
> Am Montag, den 07.02.2011, 00:16 +0530 schrieb mohit verma:
>
>> i create a socket to communicate to the user space app to listen to
>> and responsible for loggin ... via   my_sock=netlink_creat_sock()
>> i create my own  logging message format to send it via netlink
>> interface.
>> then  how can i let my module know  which process to bind it to? i
>> mean to bind my socket to any user space application i need the pid of
>> that one
>
> haven't tried netlink so maybe this won't be much help.
> isn't it possible to just bind to somewhere on the network using
>
> int kbind(ksocket_t socket, struct sockaddr *address, int address_len)
>
> from http://ksocket.sourceforge.net/  ?
>
> if i'm not mistaken you won't need any pid
>
> good luck,
>
> Lutz
>

Why don't you use debugfs or procfs and use the application to read from it ?

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Fwd: storing the logs

2011-02-09 Thread Lutz
Am Montag, den 07.02.2011, 00:16 +0530 schrieb mohit verma:

> i create a socket to communicate to the user space app to listen to
> and responsible for loggin ... via   my_sock=netlink_creat_sock()
> i create my own  logging message format to send it via netlink
> interface.
> then  how can i let my module know  which process to bind it to? i
> mean to bind my socket to any user space application i need the pid of
> that one 

haven't tried netlink so maybe this won't be much help.
isn't it possible to just bind to somewhere on the network using

int kbind(ksocket_t socket, struct sockaddr *address, int address_len)

from http://ksocket.sourceforge.net/  ?

if i'm not mistaken you won't need any pid

good luck,

Lutz


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Fwd: storing the logs

2011-02-08 Thread Lutz
Am Montag, den 07.02.2011, 00:16 +0530 schrieb mohit verma:

> i create a socket to communicate to the user space app to listen to
> and responsible for loggin ... via   my_sock=netlink_creat_sock()
> i create my own  logging message format to send it via netlink
> interface.
> then  how can i let my module know  which process to bind it to? i
> mean to bind my socket to any user space application i need the pid of
> that one 

haven't tried netlink so maybe this won't be much help.
isn't it possible to just bind to somewhere on the network using

int kbind(ksocket_t socket, struct sockaddr *address, int address_len)

from http://ksocket.sourceforge.net/
?

if i'm not mistaken you won't need any pid

good luck,

Lutz





___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Fwd: storing the logs

2011-02-06 Thread mohit verma
thanks greg,,

a silly questionplease have a look...

i create a socket to communicate to the user space app to listen to and
responsible for loggin ... via   my_sock=netlink_creat_sock()
i create my own  logging message format to send it via netlink interface.
then  how can i let my module know  which process to bind it to? i mean to
bind my socket to any user space application i need the pid of that one ,so
at the very first time  how can i  initialize the binding process with user
space application?

i hope.. i am clear to u. please let me know if noti wll try again.


i 'd really appreciate any help.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Fwd: storing the logs

2011-02-06 Thread mohit verma
thanks greg,,

a silly question..please have a look...

i create a socket to communicate to the user space app to listen to and
responsible for loggin ... via   my_sock=netlink_creat_sock()
i create my own  logging message format to send it via netlink interface.
then  how can i let my module know  which process to bind it to? i mean to
bind my socket to any user space application i need the pid of that one ,so
at the very first time  how can i  initialize the binding process with user
space application?

i hope.. i am clear to u. please let me know if noti wll try again.


i 'd really appreciate any help.



-- 

*MOHIT VERMA*
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Fwd: storing the logs

2011-01-31 Thread mohit verma
hi ,

my module produces some data (very cititcal) and that i want to log  that to
 some disk residing file like log files. So among several ways like using
syslog  (and family) ,audit daemon  i am not finding the way to use the
functionalities of any of  these subsystems .i mean : practically i am still
unable to do that.

can someone point me to some practical implementations used by some other
modules or some practically sound articles to achieve this?


thanks a lot in advance.

-- 

*MOHIT VERMA*
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Fwd: storing the logs

2011-01-31 Thread mohit verma
-- Forwarded message --
From: mohit verma 
Date: Mon, Jan 31, 2011 at 6:24 PM
Subject: storing the logs
To: kernelnewbies 


hi ,

my module produces some data (very cititcal) and that i want to log  that to
 some disk residing file like log files. So among several ways like using
syslog  (and family) ,audit daemon  i am not finding the way to use the
functionalities of any of  these subsystems .i mean : practically i am still
unable to do that.

can someone point me to some practical implementations used by some other
modules or some practically sound articles to achieve this?


thanks a lot in advance.

-- 

*MOHIT VERMA*




-- 

*MOHIT VERMA*
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies