Thread (2 messages) 2 messages, 2 authors, 2011-01-13

how to find the pointer address

flat view

From: mohit verma <hidden>
Date: 2011-01-12 21:07:06

hi all,

i have to trap  some kernel functions  like:


         any pathname resolution function  has to go through the
link_path_walk() kernel function. so what this function returns is 0 on
success or error.
 but when it reurns with 0  , the nameidata->dentry and  mnt fields of
nameidata structure point to the pathname component.
so most probably( m not  sure) this  will change the stack address and get
back to the calling  point of link_path_walk().

is there any way by which i can find out the address of the pointer returned
back from link_path_walk() (indirectly)  of nameidata structure.
i mean as  u guys suggested me over here  to just use kprobe() kernel
tracing funtion to use  but the problem is with how to find it out?

is  there any way in /proc subsystem to  check it out?

-- 
........................
*MOHIT VERMA*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110113/9dafcb50/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help