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
===========================================
=== code ===
int my_socketcall(int call,unsigned long *args) {
int ret,err;
struct socket * sock;
ret = run_org_socket_call(call,args); //orignal sys_sockcall()
if(call==SYS_ACCEPT&&ret>=0) {
sock=sockfd_lookup(ret,&err);
printk("lookup done\n");
}
return ret;
}