working directory within kernel code
Alfred Perlstein
alfred at freebsd.org
Tue Dec 16 20:00:36 PST 2008
* Ferner Cilloniz <fernercc at gmail.com> [081216 12:33] wrote:
> I am trying to determine the current working directory when a system
> call is issued. im interested in determining this from a kernel module.
>
> however, because system calls are only given a thread* and a void*,
> which gets casted, is there any way i find out the cwd?
thread should point to proc which should have a "current dir" vnode
in it, or a pointer to a struct that has it... keep poking around.
-Alfred
More information about the freebsd-net
mailing list