Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109384806
D38180.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D38180.diff
View Options
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c
--- a/sys/kern/kern_kthread.c
+++ b/sys/kern/kern_kthread.c
@@ -296,7 +296,7 @@
thread_cow_get_proc(newtd, p);
- /* this code almost the same as create_thread() in kern_thr.c */
+ /* This code is similar to thread_create() in kern_thr.c. */
p->p_flag |= P_HADTHREADS;
thread_link(newtd, p);
thread_lock(oldtd);
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -258,7 +258,7 @@
u_char td_base_ithread_pri; /* (t) Base ithread pri */
struct kmsan_td *td_kmsan; /* (k) KMSAN state */
-/* Cleared during fork1() */
+/* Cleared during fork1(), thread_create(), or kthread_add(). */
#define td_startzero td_flags
int td_flags; /* (t) TDF_* flags. */
int td_ast; /* (t) TDA_* indicators */
@@ -324,7 +324,7 @@
u_int td_ucredref; /* (k) references on td_realucred */
#define td_endzero td_sigmask
-/* Copied during fork1() or create_thread(). */
+/* Copied during fork1(), thread_create(), or kthread_add(). */
#define td_startcopy td_endzero
sigset_t td_sigmask; /* (c) Current signal mask. */
u_char td_rqindex; /* (t) Run queue index. */
@@ -344,7 +344,7 @@
#define td_endcopy td_pcb
/*
- * Fields that must be manually set in fork1() or create_thread()
+ * Fields that must be manually set in fork1(), thread_create(), kthread_add(),
* or already have been set in the allocator, constructor, etc.
*/
struct pcb *td_pcb; /* (k) Kernel VA of pcb and kstack. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 5, 9:08 AM (21 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16471431
Default Alt Text
D38180.diff (1 KB)
Attached To
Mode
D38180: Update comments referencing create_thread()
Attached
Detach File
Event Timeline
Log In to Comment