summaryrefslogtreecommitdiffstats
path: root/share/man/man9/ucred.9
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2002-07-08 07:34:46 +0000
committerjulian <julian@FreeBSD.org>2002-07-08 07:34:46 +0000
commitdbc09ded51da8f5e44abc55ff65113f3a408c70a (patch)
tree1db3c34100ec3a0ad50d9d626182fe918da0b683 /share/man/man9/ucred.9
parent7cab19d5769aa273ab939702cb0d98701d5daa0b (diff)
downloadFreeBSD-src-dbc09ded51da8f5e44abc55ff65113f3a408c70a.zip
FreeBSD-src-dbc09ded51da8f5e44abc55ff65113f3a408c70a.tar.gz
Slight changes to reflect some of the changes in -current.
mi_switch(9) is still wildly innacurate. I suggest that every kernel developer takes 20 minutes a day for the next few days and updates one or two of his favourite chapter 9 man pages as they are now WAY out of date in general. I will add a couple of KSE related pages soon.
Diffstat (limited to 'share/man/man9/ucred.9')
-rw-r--r--share/man/man9/ucred.910
1 files changed, 10 insertions, 0 deletions
diff --git a/share/man/man9/ucred.9 b/share/man/man9/ucred.9
index aa80cc9..a952631 100644
--- a/share/man/man9/ucred.9
+++ b/share/man/man9/ucred.9
@@ -143,6 +143,16 @@ structure.
.Fn crshared
returns 0 if the credential has a reference count greater than 1;
otherwise, 1 is returned.
+.Sh USAGE NOTES
+In general in a system call,
+you should always use the
+.Vt ucred
+associated with the
+thread doing the work rather than that of the process attached to it,
+As that associated with the thread is guaranteed to be safely accessed
+under SMP, and will remain stable for the duration of the call, even
+in the face of a multithreaded application changing the process credentials
+from another thread.
.Sh SEE ALSO
.Xr uihold 9
.Sh AUTHORS
OpenPOWER on IntegriCloud