Re: getCWD in kernel space



On Sat, Jun 30, 2007 at 03:24:17PM +0000, Eren Erdemli wrote:
Hello hackers,

Sorry to disturb you's but I have a question and would like to know if you
can assist me.

I am new to freebsd programing and I am trying to get the current working
directory of the curthread.

I have hook on to the sys calls and redirected the mkdir

my_mkdir(struct thread *p, (void*) uap)
{
mkdir_args = .....................
........
getCWD()???????????
}


curthread->td_proc->p_fd->fd_cdir is a vnode of cwd
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: getCWD in kernel space
    ... Sorry to disturb you's but I have a question and would like to know if you ... I am new to freebsd programing and I am trying to get the current working ... my_mkdiruap) ... the given path in the args is relative to the current path if not supplied ...
    (freebsd-hackers)
  • Re: Recursive mutex that can be waited upon (pthread)
    ... void g{lock; ... ... 'f' cannot ever disturb the invariant because 'g' assumes ... here is that because a recursive lock is used, ... you must know what invariants 'g' relies on. ...
    (comp.programming.threads)
  • getcwd in kernel space
    ... Sorry to disturb you's but I have a question and would like to know if you ... I tried posting ... my_mkdiruap) ... the given path in the args is relative to the current path if not supplied ...
    (freebsd-current)