hi, i am trying to pass a file name to a /proc file and then process it. The file name is received properly by the /proc file and when i try to pass it to another funtion where i try to get the inode number the path_walk() funtion gives an error. The code where i receive the data and pass it to the other funtion is : -----snip----- if(copy_from_user(data, buffer, len)) { MOD_DEC_USE_COUNT; return -EFAULT; } data[len] = '\0'; printk(KERN_ALERT "Data received : %s",data); tmp = sprintf(fname,"%s",data); compute_inod(fname); kfree(data); -----snip----- The path_walk() call inside compute_inod() is : ----snip---- printk("fname is %s\n",fname); if(path_init(fname,LOOKUP_POSITIVE|LOOKUP_FOLLOW,&nd)){ error = path_walk(fname, &nd); printk("path walk gives %d\n",error); } ----snip---- The fname passed on to the compute_inod also contains the exact file name that was received into the variable data. The path_walk() returns an error code number -2. What does error code -2 mean ?? where could i find more information about what the different error number mean ? TIA Karthik __________________________________________________ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/