kinfo_proc

Struct kinfo_proc 

Source
#[repr(C)]
pub struct kinfo_proc {
Show 87 fields pub ki_structsize: c_int, pub ki_layout: c_int, pub ki_args: *mut pargs, pub ki_paddr: *mut c_void, pub ki_addr: *mut c_void, pub ki_tracep: *mut c_void, pub ki_textvp: *mut c_void, pub ki_fd: *mut filedesc, pub ki_vmspace: *mut c_void, pub ki_wchan: *mut c_void, pub ki_pid: pid_t, pub ki_ppid: pid_t, pub ki_pgid: pid_t, pub ki_tpgid: pid_t, pub ki_sid: pid_t, pub ki_tsid: pid_t, pub ki_jobc: c_short, pub ki_spare_short1: c_short, pub ki_tdev_freebsd11: u32, pub ki_siglist: sigset_t, pub ki_sigmask: sigset_t, pub ki_sigignore: sigset_t, pub ki_sigcatch: sigset_t, pub ki_uid: uid_t, pub ki_ruid: uid_t, pub ki_svuid: uid_t, pub ki_rgid: gid_t, pub ki_svgid: gid_t, pub ki_ngroups: c_short, pub ki_spare_short2: c_short, pub ki_groups: [gid_t; 16], pub ki_size: vm_size_t, pub ki_rssize: segsz_t, pub ki_swrss: segsz_t, pub ki_tsize: segsz_t, pub ki_dsize: segsz_t, pub ki_ssize: segsz_t, pub ki_xstat: u_short, pub ki_acflag: u_short, pub ki_pctcpu: fixpt_t, pub ki_estcpu: u_int, pub ki_slptime: u_int, pub ki_swtime: u_int, pub ki_cow: u_int, pub ki_runtime: u64, pub ki_start: timeval, pub ki_childtime: timeval, pub ki_flag: c_long, pub ki_kiflag: c_long, pub ki_traceflag: c_int, pub ki_stat: c_char, pub ki_nice: i8, pub ki_lock: c_char, pub ki_rqindex: c_char, pub ki_oncpu_old: c_uchar, pub ki_lastcpu_old: c_uchar, pub ki_tdname: [c_char; 17], pub ki_wmesg: [c_char; 9], pub ki_login: [c_char; 18], pub ki_lockname: [c_char; 9], pub ki_comm: [c_char; 20], pub ki_emul: [c_char; 17], pub ki_loginclass: [c_char; 18], pub ki_moretdname: [c_char; 4], pub ki_sparestrings: [[c_char; 23]; 2], pub ki_spareints: [c_int; 2], pub ki_tdev: dev_t, pub ki_oncpu: c_int, pub ki_lastcpu: c_int, pub ki_tracer: c_int, pub ki_flag2: c_int, pub ki_fibnum: c_int, pub ki_cr_flags: u_int, pub ki_jid: c_int, pub ki_numthreads: c_int, pub ki_tid: lwpid_t, pub ki_pri: priority, pub ki_rusage: rusage, pub ki_rusage_ch: rusage, pub ki_pcb: *mut c_void, pub ki_kstack: *mut c_void, pub ki_udata: *mut c_void, pub ki_tdaddr: *mut c_void, pub ki_spareptrs: [*mut c_void; 6], pub ki_sparelongs: [c_long; 12], pub ki_sflag: c_long, pub ki_tdflags: c_long,
}

Fields§

§ki_structsize: c_int

Size of this structure.

§ki_layout: c_int

Reserved: layout identifier.

§ki_args: *mut pargs

Address of command arguments.

§ki_paddr: *mut c_void

Address of proc.

§ki_addr: *mut c_void

Kernel virtual address of u-area.

§ki_tracep: *mut c_void

Pointer to trace file.

§ki_textvp: *mut c_void

Pointer to executable file.

§ki_fd: *mut filedesc

Pointer to open file info.

§ki_vmspace: *mut c_void

Pointer to kernel vmspace struct.

§ki_wchan: *mut c_void

Sleep address.

§ki_pid: pid_t

Process identifier.

§ki_ppid: pid_t

Parent process ID.

§ki_pgid: pid_t

Process group ID.

§ki_tpgid: pid_t

tty process group ID.

§ki_sid: pid_t

Process session ID.

§ki_tsid: pid_t

Terminal session ID.

§ki_jobc: c_short

Job control counter.

§ki_spare_short1: c_short

Unused (just here for alignment).

§ki_tdev_freebsd11: u32

Controlling tty dev.

§ki_siglist: sigset_t

Signals arrived but not delivered.

§ki_sigmask: sigset_t

Current signal mask.

§ki_sigignore: sigset_t

Signals being ignored.

§ki_sigcatch: sigset_t

Signals being caught by user.

§ki_uid: uid_t

Effective user ID.

§ki_ruid: uid_t

Real user ID.

§ki_svuid: uid_t

Saved effective user ID.

§ki_rgid: gid_t

Real group ID.

§ki_svgid: gid_t

Saved effective group ID.

§ki_ngroups: c_short

Number of groups.

§ki_spare_short2: c_short

Unused (just here for alignment).

§ki_groups: [gid_t; 16]

Groups.

§ki_size: vm_size_t

Virtual size.

§ki_rssize: segsz_t

Current resident set size in pages.

§ki_swrss: segsz_t

Resident set size before last swap.

§ki_tsize: segsz_t

Text size (pages) XXX.

§ki_dsize: segsz_t

Data size (pages) XXX.

§ki_ssize: segsz_t

Stack size (pages).

§ki_xstat: u_short

Exit status for wait & stop signal.

§ki_acflag: u_short

Accounting flags.

§ki_pctcpu: fixpt_t

%cpu for process during ki_swtime.

§ki_estcpu: u_int

Time averaged value of ki_cpticks.

§ki_slptime: u_int

Time since last blocked.

§ki_swtime: u_int

Time swapped in or out.

§ki_cow: u_int

Number of copy-on-write faults.

§ki_runtime: u64

Real time in microsec.

§ki_start: timeval

Starting time.

§ki_childtime: timeval

Time used by process children.

§ki_flag: c_long

P_* flags.

§ki_kiflag: c_long

KI_* flags (below).

§ki_traceflag: c_int

Kernel trace points.

§ki_stat: c_char

S* process status.

§ki_nice: i8

Process “nice” value.

§ki_lock: c_char

Process lock (prevent swap) count.

§ki_rqindex: c_char

Run queue index.

§ki_oncpu_old: c_uchar

Which cpu we are on.

§ki_lastcpu_old: c_uchar

Last cpu we were on.

§ki_tdname: [c_char; 17]

Thread name.

§ki_wmesg: [c_char; 9]

Wchan message.

§ki_login: [c_char; 18]

Setlogin name.

§ki_lockname: [c_char; 9]

Lock name.

§ki_comm: [c_char; 20]

Command name.

§ki_emul: [c_char; 17]

Emulation name.

§ki_loginclass: [c_char; 18]

Login class.

§ki_moretdname: [c_char; 4]

More thread name.

§ki_sparestrings: [[c_char; 23]; 2]

Spare string space.

§ki_spareints: [c_int; 2]

Spare room for growth.

§ki_tdev: dev_t

Controlling tty dev.

§ki_oncpu: c_int

Which cpu we are on.

§ki_lastcpu: c_int

Last cpu we were on.

§ki_tracer: c_int

PID of tracing process.

§ki_flag2: c_int

P2_* flags.

§ki_fibnum: c_int

Default FIB number.

§ki_cr_flags: u_int

Credential flags.

§ki_jid: c_int

Process jail ID.

§ki_numthreads: c_int

Number of threads in total.

§ki_tid: lwpid_t

Thread ID.

§ki_pri: priority

Process priority.

§ki_rusage: rusage

Process rusage statistics.

§ki_rusage_ch: rusage

rusage of children processes.

§ki_pcb: *mut c_void

Kernel virtual addr of pcb.

§ki_kstack: *mut c_void

Kernel virtual addr of stack.

§ki_udata: *mut c_void

User convenience pointer.

§ki_tdaddr: *mut c_void§ki_spareptrs: [*mut c_void; 6]§ki_sparelongs: [c_long; 12]§ki_sflag: c_long

PS_* flags.

§ki_tdflags: c_long

kthread flag.

Trait Implementations§

Source§

impl Clone for kinfo_proc

Source§

fn clone(&self) -> kinfo_proc

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for kinfo_proc

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for kinfo_proc

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.