Re: Fwd: storing the logs

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

 



> 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@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux