summaryrefslogtreecommitdiffstats
path: root/sys/sys/namei.h
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-09-12 08:38:13 +0000
committerjulian <julian@FreeBSD.org>2001-09-12 08:38:13 +0000
commit5596676e6c6c1e81e899cd0531f9b1c28a292669 (patch)
treeb1a19fcdf05759281fab0d89efb13f0fdf42102e /sys/sys/namei.h
parent83e00d4274950d2b531c24692cd123538ffbddb9 (diff)
downloadFreeBSD-src-5596676e6c6c1e81e899cd0531f9b1c28a292669.zip
FreeBSD-src-5596676e6c6c1e81e899cd0531f9b1c28a292669.tar.gz
KSE Milestone 2
Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
Diffstat (limited to 'sys/sys/namei.h')
-rw-r--r--sys/sys/namei.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/sys/namei.h b/sys/sys/namei.h
index 1d50937..69daed1 100644
--- a/sys/sys/namei.h
+++ b/sys/sys/namei.h
@@ -81,7 +81,7 @@ struct nameidata {
*/
u_long cn_nameiop; /* namei operation */
u_long cn_flags; /* flags to namei */
- struct proc *cn_proc; /* process requesting lookup */
+ struct thread *cn_thread;/* thread requesting lookup */
struct ucred *cn_cred; /* credentials */
/*
* Shared between lookup and commit routines.
@@ -142,24 +142,25 @@ struct nameidata {
#define ISUNICODE 0x100000 /* current component name is unicode*/
#define PDIRUNLOCK 0x200000 /* file system lookup() unlocked parent dir */
#define PARAMASK 0x1fff00 /* mask of parameter descriptors */
+
/*
* Initialization of an nameidata structure.
*/
static void NDINIT __P((struct nameidata *, u_long, u_long, enum uio_seg,
- const char *, struct proc *));
+ const char *, struct thread *));
static __inline void
-NDINIT(ndp, op, flags, segflg, namep, p)
+NDINIT(ndp, op, flags, segflg, namep, td)
struct nameidata *ndp;
u_long op, flags;
enum uio_seg segflg;
const char *namep;
- struct proc *p;
+ struct thread *td;
{
ndp->ni_cnd.cn_nameiop = op;
ndp->ni_cnd.cn_flags = flags;
ndp->ni_segflg = segflg;
ndp->ni_dirp = namep;
- ndp->ni_cnd.cn_proc = p;
+ ndp->ni_cnd.cn_thread = td;
}
#define NDF_NO_DVP_RELE 0x00000001
OpenPOWER on IntegriCloud