On Tue, 16 Nov 1999, Tomi Manninen wrote:
> On Tue, 16 Nov 1999, Jorge Matias wrote:
>
> >
> > I don't know if anyone of you has this problem, but I found that
> > everytime ax25d answers a call and spawns a connection to a service it
> > opens "ax25" module for use. The problem is that when the connection is
> > closed we still have the "ax25" module opened.
> > This means that I can never remove ax25 module from memory because it
> > says it is in use.
> > When I made my last reboot I had ax25 module opened 725 times.
>
> Do you see something strange in /proc/net/ax25 ? Or with "links *" command
> in node. And what do you see with "ls -l /proc/`pidof ax25d`/fd" ? Do the
> inode numbers (the ones in square brackets) match those in /proc/net/ax25
> (the last number in each line) ?
Here goes a copy of "ls -l /proc/`pidof ax25d`/fd"
lr-x------ 1 root root 64 Nov 16 23:54 0 -> /dev/null
l-wx------ 1 root root 64 Nov 16 23:54 1 -> pipe:[584]
lrwx------ 1 root root 64 Nov 16 23:54 10 -> socket:[872]
lrwx------ 1 root root 64 Nov 16 23:54 11 -> socket:[874]
lrwx------ 1 root root 64 Nov 16 23:54 12 -> socket:[875]
l-wx------ 1 root root 64 Nov 16 23:54 2 -> pipe:[585]
l-wx------ 1 root root 64 Nov 16 23:54 21 -> pipe:[586]
lrwx------ 1 root root 64 Nov 16 23:54 3 -> socket:[867]
lrwx------ 1 root root 64 Nov 16 23:54 5 -> socket:[868]
lrwx------ 1 root root 64 Nov 16 23:54 6 -> socket:[870]
lr-x------ 1 root root 64 Nov 16 23:54 7 -> pipe:[586]
lrwx------ 1 root root 64 Nov 16 23:54 8 -> socket:[871]
lrwx------ 1 root root 64 Nov 16 23:54 9 -> /dev/console
and "more /proc/net/ax25"
c03b8260 ax0 CS1SEL-5 CS1GDX-5,CS1SEL-9,CT1BPT-8 3 1 5 1 0 34 0 3 257 300
0 0 0
10 15 7 256 0 48 110929
c0b5ada0 ax0 CS1SEL-6 CT1EDP-0,CS1SEL-9,CT1EJC-15 3 0 5 0 0 7 0 3 259 300
0 0 0
10 3 7 256 0 48 110400
c0b5a5c0 ax0 CS1SEL-6 CT1EFR-2,CS1SEL-9,CS1GDX-7 3 1 4 1 0 4 0 3 257 300 0
0 0 1
0 2 7 256 0 48 109170
c0b5ab60 ax0 CS1SEL-6 CT1EJC-10,CS1SEL-9,CT1BPT-8 3 3 5 3 0 0 0 3 277 300
0 0 0
10 0 7 256 0 48 105803
c0d055c0 ax0 CS1SEL-6 CT1END-9,CS1SEL-9,CT0XMT-8 3 3 2 3 0 0 0 3 258 300 0
0 0 1
0 0 7 256 0 48 104481
c0bcbc60 ax0 CS1SEL-6 CT1FSC-0,CS1SEL-9,CT1BPT-8 3 1 2 1 0 0 0 3 257 300 0
0 0 1
0 0 7 256 0 48 103480
c05fb120 ax0 CS1SEL-5 CT1ARR-10,CS1SEL-9 3 2 4 2 0 0 0 3 255 300 0 0 0 10
0 7 25
6 0 0 72781
c035e920 ax0 CS1SEL-5 * 0 0 0 0 0 10 0 3 0 300 0 0 0 10 5 7 256 0 0 875
c035e800 scc3 CS1SEL-5 * 0 0 0 0 0 30 0 4 0 300 0 0 0 10 15 7 256 0 0 874
c035e6e0 scc0 CS1SEL-5 * 0 0 0 0 0 30 0 4 0 300 0 0 0 10 15 7 256 0 0 872
c035e5c0 scc2 CS1SEL-5 * 0 0 0 0 0 30 0 4 0 300 0 0 0 10 15 2 256 0 0 871
c035e4a0 ??? CS1SEL-8 * 0 0 0 0 0 10 0 3 0 300 0 0 0 10 5 2 256 0 0 870
c035e380 ??? CS1SEL-6 * 0 0 0 0 0 10 0 3 0 300 0 0 0 10 5 2 256 0 0 868
Do you see anything strange?
I see the socket:[867] that has no relation in file /proc/net/ax25.
Since my last message this is actual "lsmod" output:
Module Size Used by
af_packet 5868 5 (autoclean)
scc 18168 3
mkiss 7516 1
ax25 35776 128 [scc mkiss]
Thanks in advance for your support.