]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/bsdtask_info.h
xnu-1699.26.8.tar.gz
[apple/xnu.git] / bsd / sys / bsdtask_info.h
index 91bd0027a20d2997df4e84fcc085ddcc5a6bf7e8..7b7b566108b9403b5704afe42750c8768b9d8861 100644 (file)
@@ -51,6 +51,7 @@ struct proc_taskinfo_internal {
        int32_t                 pti_priority;           /* task priority*/
 };
 
+#define MAXTHREADNAMESIZE 64
 
 struct proc_threadinfo_internal {
        uint64_t                pth_user_time;      /* user run time */
@@ -63,6 +64,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[MAXTHREADNAMESIZE];            /* thread name, if any */
 };
 
 
@@ -86,9 +88,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
@@ -98,17 +100,18 @@ struct proc_regioninfo_internal {
 
 void  vm_map_region_top_walk(vm_map_entry_t entry, vm_region_top_info_t top);
 void vm_map_region_walk(vm_map_t map, vm_map_offset_t a, vm_map_entry_t entry, vm_object_offset_t offset, vm_object_size_t range, vm_region_extended_info_t extended);
-kern_return_t vnode_pager_get_object_vnode(memory_object_t mem_obj,uint32_t * vnodeaddr, uint32_t * vid);
+kern_return_t vnode_pager_get_object_vnode(memory_object_t mem_obj, uintptr_t * vnodeaddr, uint32_t * vid);
 extern uint32_t vnode_vid(void *vp);
 
 #endif /* MACH_KERNEL_PRIVATE */
 
-extern int fill_procregioninfo(task_t t, uint64_t arg, struct proc_regioninfo_internal *pinfo, uint32_t *vp, uint32_t *vid);
+extern int fill_procregioninfo(task_t t, uint64_t arg, struct proc_regioninfo_internal *pinfo, uintptr_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_getthreadname(void *uth, char* buffer);
+void bsd_threadcdir(void * uth, void *vptr, int *vidp);
 
 #endif /*_SYS_BSDTASK_INFO_H */