Re: creating procfs entries in netfilter context

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

 



hi, 


> > i need to create these entries without sleeping, GFP_ATOMIC, because in
> > netfilter hooks is not allowed to sleep.
> 
> 
> that's not enough ... because the VFS uses semaphores for just about
> everything. And creating a proc entry needs to go to the vfs to do
> things. I think that you're doing something really weird; proc entries
> (which are deprecated btw!) are typically only created during
> initialization not during normal runtime of a module....
> 

what i need to do is a kind of statistics per network flow, so i'm
detecting flows and creating proc entries to display the information
about them

i will try with sysfs! (i've not yet explore it)

i will appreciate comment on how to to do that in a better way! ;)




-- 
topi <topi@xxxxxxxxxxxx>


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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