tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to get a struct mount

> I hace a filesystem mounted on /foo how do I retreive its struct mount?

> Using namei_simple_user(), I can get a vnode for /foo but its v_mount
> is the one for the root filesystem.  Looking up /foo/ produces an
> error.  (bad address). 

Isn't that what v_mountedhere is for?  Or has that gone away in the
NetBSD version you're using?  (I don't see any indication what version
you're doing this under.)

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML      
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

Home | Main Index | Thread Index | Old Index