GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
P_CANSEE(9) FreeBSD Kernel Developer's Manual P_CANSEE(9)

p_canseedetermine visibility of a process

#include <sys/proc.h>

int
p_cansee(struct thread *td, struct proc *p);

This function determines if a given process p is visible to the thread td, where the notion of “visibility” may be read as “awareness of existence”.

This function explicitly allows a thread to always see its own process, even with pending credentials changes (see ucred(9)). Otherwise, it simply defers to cr_cansee(9).

The p_cansee() function returns 0 if the process denoted by p is visible by thread td, or ESRCH otherwise.

[]
Thread td is not part of process p and cannot see it as determined by cr_cansee(9).

cr_cansee(9), p_candebug(9), ucred(9)

August 18, 2023 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 9 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.