file access in kernel

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

 



Hi, all
I have some problem to access file in kernel space
 
since I want to get the info about current connection status(tcp/udp flow, local in or forwading ) in my module
with ip_contrack/netfilter not compiled in
I know no other ways to get this info but to access /proc/net/tcp or proc/net/udp ....
but both sys_read() and proc_read() are not exposed as a kernel symbol,
I get no way to access the proc/net/tcp from kernel.....
any function available to access file in kernel?
or is there other method for me to get connection information in kernel 
 
Appreciate for youe reply
Steve
  
 

[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