On Fri, Oct 11, 2002 at 11:42:48PM +0800, tongcd wrote: > sorry I have not express my idea clearly,what i want is to get absolute > pathname in lkm .if the process is the current process ,this is quite > easy,just d_path kind of call,if the process is not the current process > It seems d_path works when you travel the tasklist.code as such: > > vma = p->mm->mmap; > entry = vma->vm_file->f_dentry; > d_path(entry,vma->vm_file->f_vfsmnt,buf,sizeof(buf)); > (__d_path is changed a little without using the current process lock) > When i try to get the absolute name in send_sig_info function in order to control current process could send what sig to which process,,use __d_path make system oops why? and corrent solution ls -l /proc/<pid>/exe Which is done in proc_exe_link() in fs/proc/base.c Erik -- J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl WWW: http://www-ict.its.tudelft.nl/~erik/ - Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/