]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/bsdtask_info.h
xnu-1228.0.2.tar.gz
[apple/xnu.git] / bsd / sys / bsdtask_info.h
index a18c56fc8e5a5298bbabfcd41e3dc7c3b52dbe3f..0da659b821ba6c8f1d72dc85f62e869fe3ce74cd 100644 (file)
@@ -2,23 +2,29 @@
 /*
  * Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
  *
- * @APPLE_LICENSE_HEADER_START@
- *
- * The contents of this file constitute Original Code as defined in and
- * are subject to the Apple Public Source License Version 1.1 (the
- * "License").  You may not use this file except in compliance with the
- * License.  Please obtain a copy of the License at
- * http://www.apple.com/publicsource and read it before using this file.
- *
- * This Original Code and all software distributed under the License are
- * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ * 
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ * 
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ * 
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * @APPLE_LICENSE_HEADER_END@
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ * 
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  */
 
 #ifndef _SYS_BSDTASK_INFO_H
@@ -57,6 +63,7 @@ struct proc_threadinfo_internal {
        int32_t                 pth_curpri;             /* cur priority*/
        int32_t                 pth_priority;           /*  priority*/
        int32_t                 pth_maxpriority;                /* max priority*/
+       char *                  pth_name[64];           /* thread name, if any */
 };
 
 
@@ -80,9 +87,9 @@ struct proc_regioninfo_internal {
        uint32_t                pri_private_pages_resident;
        uint32_t                pri_shared_pages_resident;
        uint32_t                pri_obj_id;
+       uint32_t                pri_depth;
        uint64_t                pri_address;
        uint64_t                pri_size;
-       uint32_t                pri_depth;
 };
 
 #ifdef  MACH_KERNEL_PRIVATE
@@ -99,10 +106,10 @@ extern uint32_t vnode_vid(void *vp);
 
 extern int fill_procregioninfo(task_t t, uint64_t arg, struct proc_regioninfo_internal *pinfo, uint32_t *vp, uint32_t *vid);
 void fill_taskprocinfo(task_t task, struct proc_taskinfo_internal * ptinfo);
-int fill_taskthreadinfo(task_t task, uint64_t thaddr, struct proc_threadinfo_internal * ptinfo);
+int fill_taskthreadinfo(task_t task, uint64_t thaddr, struct proc_threadinfo_internal * ptinfo, void *, int *);
 int fill_taskthreadlist(task_t task, void * buffer, int thcount);
 int get_numthreads(task_t);
-
+void bsd_threadcdir(void * uth, void *vptr, int *vidp);
 
 #endif /*_SYS_BSDTASK_INFO_H */