From c3ea428a25378b5393eb5ca7c7b4882d163c0a7d Mon Sep 17 00:00:00 2001 From: Marko Zec Date: Thu, 11 Jun 2009 17:03:15 +0000 Subject: [PATCH] In struct thread, fields td_vnet and td_vnet_lpush may only be accessed via curthread (via appropriate macros), so update the comment indicating the protection model for those two fields. --- sys/sys/proc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 1dd82edccfa7..0a4b79c94781 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -278,8 +278,8 @@ struct thread { struct lpohead td_lprof[2]; /* (a) lock profiling objects. */ struct kdtrace_thread *td_dtrace; /* (*) DTrace-specific data. */ int td_errno; /* Error returned by last syscall. */ - struct vnet *td_vnet; /* (*) Effective vnet. */ - const char *td_vnet_lpush; /* (*) Debugging vnet push / pop. */ + struct vnet *td_vnet; /* (k) Effective vnet. */ + const char *td_vnet_lpush; /* (k) Debugging vnet push / pop. */ }; struct mtx *thread_lock_block(struct thread *);