Re: question about sockfd_lookup( )

2005-03-01 Thread MingJie Chang
I can't use sockfd_put(sock) directly. I trace its code, the code is extern __inline__ void sockfd_put(struct socket *sock) { fput(sock->file); } so I use fput(sock->file) but it has problems too 1) execute "ls" in the ftp is also block 2) kernel prints "socki_lookup: socket file

Re: question about sockfd_lookup( )

2005-03-01 Thread MingJie Chang
I can't use sockfd_put(sock) directly. I trace its code, the code is extern __inline__ void sockfd_put(struct socket *sock) { fput(sock->file); } so I use fput(sock->file) but it has problems too 1) execute "ls" in the ftp is also block 2) kernel prints "socki_lookup: socket file

Re: question about sockfd_lookup( )

2005-03-01 Thread MingJie Chang
I can't use sockfd_put(sock) directly. I trace its code, the code is extern __inline__ void sockfd_put(struct socket *sock) { fput(sock-file); } so I use fput(sock-file) but it has problems too 1) execute ls in the ftp is also block 2) kernel prints socki_lookup: socket file

Re: question about sockfd_lookup( )

2005-03-01 Thread MingJie Chang
I can't use sockfd_put(sock) directly. I trace its code, the code is extern __inline__ void sockfd_put(struct socket *sock) { fput(sock-file); } so I use fput(sock-file) but it has problems too 1) execute ls in the ftp is also block 2) kernel prints socki_lookup: socket file changed!

Re: question about sockfd_lookup( )

2005-02-28 Thread Eric Dumazet
Hi Try adding sockfd_put(sock) ; MingJie Chang wrote: Dear all, I want to get socket information by the sockfd while accetping, so I write a module to test sockfd_lookup(), but I got some problems when I test it. I hope someone can help me... Thank you following text is my code and error message

question about sockfd_lookup( ) -- sorry I forget to say the kernel version

2005-02-28 Thread MingJie Chang
Dear all, I want to get socket information by the sockfd while accetping, so I write a module to test sockfd_lookup(), but I got some problems when I test it. kernel version: 2.4.20-8smp(RedHat9) and 2.4.26 are tried ftp server: vsftp 1.1.3-8 and wuftp 2.6.1-20 are tried I hope someone

question about sockfd_lookup( )

2005-02-28 Thread MingJie Chang
Dear all, I want to get socket information by the sockfd while accetping, so I write a module to test sockfd_lookup(), but I got some problems when I test it. I hope someone can help me... Thank you following text is my code and error message === ===

question about sockfd_lookup( )

2005-02-28 Thread MingJie Chang
Dear all, I want to get socket information by the sockfd while accetping, so I write a module to test sockfd_lookup(), but I got some problems when I test it. I hope someone can help me... Thank you following text is my code and error message === ===

question about sockfd_lookup( ) -- sorry I forget to say the kernel version

2005-02-28 Thread MingJie Chang
Dear all, I want to get socket information by the sockfd while accetping, so I write a module to test sockfd_lookup(), but I got some problems when I test it. kernel version: 2.4.20-8smp(RedHat9) and 2.4.26 are tried ftp server: vsftp 1.1.3-8 and wuftp 2.6.1-20 are tried I hope someone

Re: question about sockfd_lookup( )

2005-02-28 Thread Eric Dumazet
Hi Try adding sockfd_put(sock) ; MingJie Chang wrote: Dear all, I want to get socket information by the sockfd while accetping, so I write a module to test sockfd_lookup(), but I got some problems when I test it. I hope someone can help me... Thank you following text is my code and error message