Re:Help: from proc to thread?

2002-06-02 Thread John Baldwin
On 03-Jun-2002 kai ouyang wrote: > Yeah, thread is NULL. > But I view all the callers, I did not find any assignment to td. > I do not know the kernel how assign td to the structure. > The RAIDFrame has the similar function as the vinum. I find this problem > when I config a RAID level volume.

Re:Help: from proc to thread?

2002-06-02 Thread kai ouyang
>> Based on the explain of the thread: struct proc *td_proc; /* Associated process. */ in the struct>> thread.>> and refer to the CCD code.>> I modify this function as following:>> int raidlookup(path, td, vpp)>>  char   *path;>>  struct thread *td;>>  struct vnode **vpp; /* result */>> {>>  struct