32c32
< * $FreeBSD: head/sys/netsmb/smb_dev.c 82042 2001-08-21 08:58:02Z bp $
---
> * $FreeBSD: head/sys/netsmb/smb_dev.c 87192 2001-12-02 08:47:29Z bp $
123c123
< nsmb_dev_open(dev_t dev, int oflags, int devtype, struct proc *p)
---
> nsmb_dev_open(dev_t dev, int oflags, int devtype, struct thread *td)
125a126
> struct proc *p = td->td_proc;
157c158
< nsmb_dev_close(dev_t dev, int flag, int fmt, struct proc *p)
---
> nsmb_dev_close(dev_t dev, int flag, int fmt, struct thread *td)
171c172
< smb_makescred(&scred, p, NULL);
---
> smb_makescred(&scred, td, NULL);
191c192
< nsmb_dev_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
---
> nsmb_dev_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
203c204
< smb_makescred(&scred, p, NULL);
---
> smb_makescred(&scred, td, NULL);
213c214
< smb_vc_unlock(vcp, 0, p);
---
> smb_vc_unlock(vcp, 0, td);
226c227
< smb_share_unlock(ssp, 0, p);
---
> smb_share_unlock(ssp, 0, td);
255c256
< smb_vc_ref(vcp, p);
---
> smb_vc_ref(vcp);
273c274
< smb_share_ref(ssp, p);
---
> smb_share_ref(ssp);
296c297
< smb_vc_unlock(vcp, 0, p);
---
> smb_vc_unlock(vcp, 0, td);
301c302
< smb_share_unlock(ssp, 0, p);
---
> smb_share_unlock(ssp, 0, td);
320c321
< auio.uio_procp = p;
---
> auio.uio_td = td;
347c348
< nsmb_dev_poll(dev_t dev, int events, struct proc *p)
---
> nsmb_dev_poll(dev_t dev, int events, struct thread *td)
414c415,416
< if ((fp = nsmb_getfp(scred->scr_p->p_fd, fd, FREAD | FWRITE)) == NULL)
---
> fp = nsmb_getfp(scred->scr_td->td_proc->p_fd, fd, FREAD | FWRITE);
> if (fp == NULL)
< * $FreeBSD: head/sys/netsmb/smb_dev.c 82042 2001-08-21 08:58:02Z bp $
---
> * $FreeBSD: head/sys/netsmb/smb_dev.c 87192 2001-12-02 08:47:29Z bp $
123c123
< nsmb_dev_open(dev_t dev, int oflags, int devtype, struct proc *p)
---
> nsmb_dev_open(dev_t dev, int oflags, int devtype, struct thread *td)
125a126
> struct proc *p = td->td_proc;
157c158
< nsmb_dev_close(dev_t dev, int flag, int fmt, struct proc *p)
---
> nsmb_dev_close(dev_t dev, int flag, int fmt, struct thread *td)
171c172
< smb_makescred(&scred, p, NULL);
---
> smb_makescred(&scred, td, NULL);
191c192
< nsmb_dev_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
---
> nsmb_dev_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
203c204
< smb_makescred(&scred, p, NULL);
---
> smb_makescred(&scred, td, NULL);
213c214
< smb_vc_unlock(vcp, 0, p);
---
> smb_vc_unlock(vcp, 0, td);
226c227
< smb_share_unlock(ssp, 0, p);
---
> smb_share_unlock(ssp, 0, td);
255c256
< smb_vc_ref(vcp, p);
---
> smb_vc_ref(vcp);
273c274
< smb_share_ref(ssp, p);
---
> smb_share_ref(ssp);
296c297
< smb_vc_unlock(vcp, 0, p);
---
> smb_vc_unlock(vcp, 0, td);
301c302
< smb_share_unlock(ssp, 0, p);
---
> smb_share_unlock(ssp, 0, td);
320c321
< auio.uio_procp = p;
---
> auio.uio_td = td;
347c348
< nsmb_dev_poll(dev_t dev, int events, struct proc *p)
---
> nsmb_dev_poll(dev_t dev, int events, struct thread *td)
414c415,416
< if ((fp = nsmb_getfp(scred->scr_p->p_fd, fd, FREAD | FWRITE)) == NULL)
---
> fp = nsmb_getfp(scred->scr_td->td_proc->p_fd, fd, FREAD | FWRITE);
> if (fp == NULL)