Searched refs:pth_name (Results 1 - 10 of 10) sorted by relevance

/xnu-2782.1.97/bsd/sys/
H A Dbsdtask_info.h67 char pth_name[MAXTHREADNAMESIZE]; /* thread name, if any */ member in struct:proc_threadinfo_internal
H A Duser.h279 char * pth_name; member in struct:uthread
H A Dproc_info.h204 char pth_name[MAXTHREADNAMESIZE]; /* thread name, if any */ member in struct:proc_threadinfo
/xnu-2782.1.97/bsd/kern/
H A Dkern_fork.c1540 void *pth_name; local
1584 * Set pth_name to NULL before calling free().
1587 * where the stackshot could try and copy pth_name
1591 if (uth->pth_name != NULL) {
1592 pth_name = uth->pth_name;
1593 uth->pth_name = NULL;
1594 kfree(pth_name, MAXTHREADNAMESIZE);
H A Dkern_sysctl.c352 if(ut->pth_name)
354 currlen = strlen(ut->pth_name);
359 if(ut->pth_name) {
360 error = copyout(ut->pth_name,oldp,currlen);
374 if(!ut->pth_name)
376 ut->pth_name = (char*)kalloc( MAXTHREADNAMESIZE );
377 if(!ut->pth_name)
380 bzero(ut->pth_name, MAXTHREADNAMESIZE);
381 error = copyin(newp, ut->pth_name, newlen);
H A Dproc_info.c755 if(ut->pth_name)
756 bcopy(ut->pth_name,buffer,MAXTHREADNAMESIZE);
2154 if(!ut->pth_name)
2156 ut->pth_name = (char*)kalloc(MAXTHREADNAMESIZE );
2157 if(!ut->pth_name)
2160 bzero(ut->pth_name, MAXTHREADNAMESIZE);
2161 error = copyin(buffer, ut->pth_name, buffersize);
/xnu-2782.1.97/osfmk/kern/
H A Ddebug.h87 char pth_name[STACKSHOT_MAX_THREAD_NAME_SIZE]; member in struct:thread_snapshot
H A Dkern_stackshot.c509 bzero(&tsnap->pth_name, STACKSHOT_MAX_THREAD_NAME_SIZE);
510 proc_threadname_kdp(thread->uthread, &tsnap->pth_name[0], STACKSHOT_MAX_THREAD_NAME_SIZE);
H A Dbsd_kern.c754 bsd_getthreadname(thact->uthread,ptinfo->pth_name);
/xnu-2782.1.97/tools/lldbmacros/
H A Dprocess.py273 if int(uthread.pth_name) != 0 :
274 th_name_strval = Cast(uthread.pth_name, 'char *')

Completed in 161 milliseconds