Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/user.h
Show First 20 Lines • Show All 315 Lines • ▼ Show 20 Lines | struct kinfo_ofile { | ||||
int kf_ref_count; /* Reference count. */ | int kf_ref_count; /* Reference count. */ | ||||
int kf_flags; /* Flags. */ | int kf_flags; /* Flags. */ | ||||
/* XXX Hidden alignment padding here on amd64 */ | /* XXX Hidden alignment padding here on amd64 */ | ||||
off_t kf_offset; /* Seek location. */ | off_t kf_offset; /* Seek location. */ | ||||
int kf_vnode_type; /* Vnode type. */ | int kf_vnode_type; /* Vnode type. */ | ||||
int kf_sock_domain; /* Socket domain. */ | int kf_sock_domain; /* Socket domain. */ | ||||
int kf_sock_type; /* Socket type. */ | int kf_sock_type; /* Socket type. */ | ||||
int kf_sock_protocol; /* Socket protocol. */ | int kf_sock_protocol; /* Socket protocol. */ | ||||
char kf_path[PATH_MAX]; /* Path to file, if any. */ | char kf_path[OLD_PATH_MAX]; /* Path to file, if any. */ | ||||
struct sockaddr_storage kf_sa_local; /* Socket address. */ | struct sockaddr_storage kf_sa_local; /* Socket address. */ | ||||
struct sockaddr_storage kf_sa_peer; /* Peer address. */ | struct sockaddr_storage kf_sa_peer; /* Peer address. */ | ||||
}; | }; | ||||
#if defined(__amd64__) || defined(__i386__) | #if defined(__amd64__) || defined(__i386__) | ||||
/* | /* | ||||
* This size should never be changed. If you really need to, you must provide | * This size should never be changed. If you really need to, you must provide | ||||
* backward ABI compatibility by allocating a new sysctl MIB that will return | * backward ABI compatibility by allocating a new sysctl MIB that will return | ||||
▲ Show 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | union { | ||||
} kf_proc; | } kf_proc; | ||||
} kf_un; | } kf_un; | ||||
uint16_t kf_status; /* Status flags. */ | uint16_t kf_status; /* Status flags. */ | ||||
uint16_t kf_pad1; /* Round to 32 bit alignment. */ | uint16_t kf_pad1; /* Round to 32 bit alignment. */ | ||||
int _kf_ispare0; /* Space for more stuff. */ | int _kf_ispare0; /* Space for more stuff. */ | ||||
cap_rights_t kf_cap_rights; /* Capability rights. */ | cap_rights_t kf_cap_rights; /* Capability rights. */ | ||||
uint64_t _kf_cap_spare; /* Space for future cap_rights_t. */ | uint64_t _kf_cap_spare; /* Space for future cap_rights_t. */ | ||||
/* Truncated before copyout in sysctl */ | /* Truncated before copyout in sysctl */ | ||||
char kf_path[PATH_MAX]; /* Path to file, if any. */ | char kf_path[OLD_PATH_MAX]; /* Path to file, if any. */ | ||||
}; | }; | ||||
#ifndef _KERNEL | #ifndef _KERNEL | ||||
#define kf_vnode_type kf_un.kf_file.kf_file_type | #define kf_vnode_type kf_un.kf_file.kf_file_type | ||||
#define kf_sock_domain kf_un.kf_sock.kf_sock_domain0 | #define kf_sock_domain kf_un.kf_sock.kf_sock_domain0 | ||||
#define kf_sock_type kf_un.kf_sock.kf_sock_type0 | #define kf_sock_type kf_un.kf_sock.kf_sock_type0 | ||||
#define kf_sock_protocol kf_un.kf_sock.kf_sock_protocol0 | #define kf_sock_protocol kf_un.kf_sock.kf_sock_protocol0 | ||||
#endif | #endif | ||||
Show All 36 Lines | struct kinfo_ovmentry { | ||||
void *kve_start; /* Starting address. */ | void *kve_start; /* Starting address. */ | ||||
void *kve_end; /* Finishing address. */ | void *kve_end; /* Finishing address. */ | ||||
int kve_flags; /* Flags on map entry. */ | int kve_flags; /* Flags on map entry. */ | ||||
int kve_resident; /* Number of resident pages. */ | int kve_resident; /* Number of resident pages. */ | ||||
int kve_private_resident; /* Number of private pages. */ | int kve_private_resident; /* Number of private pages. */ | ||||
int kve_protection; /* Protection bitmask. */ | int kve_protection; /* Protection bitmask. */ | ||||
int kve_ref_count; /* VM obj ref count. */ | int kve_ref_count; /* VM obj ref count. */ | ||||
int kve_shadow_count; /* VM obj shadow count. */ | int kve_shadow_count; /* VM obj shadow count. */ | ||||
char kve_path[PATH_MAX]; /* Path to VM obj, if any. */ | char kve_path[OLD_PATH_MAX]; /* Path to VM obj, if any. */ | ||||
void *_kve_pspare[8]; /* Space for more stuff. */ | void *_kve_pspare[8]; /* Space for more stuff. */ | ||||
off_t kve_offset; /* Mapping offset in object */ | off_t kve_offset; /* Mapping offset in object */ | ||||
uint64_t kve_fileid; /* inode number if vnode */ | uint64_t kve_fileid; /* inode number if vnode */ | ||||
uint32_t kve_fsid; /* dev_t of vnode location */ | uint32_t kve_fsid; /* dev_t of vnode location */ | ||||
int _kve_ispare[3]; /* Space for more stuff. */ | int _kve_ispare[3]; /* Space for more stuff. */ | ||||
}; | }; | ||||
#if defined(__amd64__) || defined(__i386__) | #if defined(__amd64__) || defined(__i386__) | ||||
Show All 18 Lines | struct kinfo_vmentry { | ||||
uint64_t kve_vn_size; /* File size. */ | uint64_t kve_vn_size; /* File size. */ | ||||
uint32_t kve_vn_rdev_freebsd11; /* Device id if device. */ | uint32_t kve_vn_rdev_freebsd11; /* Device id if device. */ | ||||
uint16_t kve_vn_mode; /* File mode. */ | uint16_t kve_vn_mode; /* File mode. */ | ||||
uint16_t kve_status; /* Status flags. */ | uint16_t kve_status; /* Status flags. */ | ||||
uint64_t kve_vn_fsid; /* dev_t of vnode location */ | uint64_t kve_vn_fsid; /* dev_t of vnode location */ | ||||
uint64_t kve_vn_rdev; /* Device id if device. */ | uint64_t kve_vn_rdev; /* Device id if device. */ | ||||
int _kve_ispare[8]; /* Space for more stuff. */ | int _kve_ispare[8]; /* Space for more stuff. */ | ||||
/* Truncated before copyout in sysctl */ | /* Truncated before copyout in sysctl */ | ||||
char kve_path[PATH_MAX]; /* Path to VM obj, if any. */ | char kve_path[OLD_PATH_MAX]; /* Path to VM obj, if any. */ | ||||
}; | }; | ||||
/* | /* | ||||
* The "vm.objects" sysctl provides a list of all VM objects in the system | * The "vm.objects" sysctl provides a list of all VM objects in the system | ||||
* via an array of these entries. | * via an array of these entries. | ||||
*/ | */ | ||||
struct kinfo_vmobject { | struct kinfo_vmobject { | ||||
int kvo_structsize; /* Variable size of record. */ | int kvo_structsize; /* Variable size of record. */ | ||||
int kvo_type; /* Object type: KVME_TYPE_*. */ | int kvo_type; /* Object type: KVME_TYPE_*. */ | ||||
uint64_t kvo_size; /* Object size in pages. */ | uint64_t kvo_size; /* Object size in pages. */ | ||||
uint64_t kvo_vn_fileid; /* inode number if vnode. */ | uint64_t kvo_vn_fileid; /* inode number if vnode. */ | ||||
uint32_t kvo_vn_fsid_freebsd11; /* dev_t of vnode location. */ | uint32_t kvo_vn_fsid_freebsd11; /* dev_t of vnode location. */ | ||||
int kvo_ref_count; /* Reference count. */ | int kvo_ref_count; /* Reference count. */ | ||||
int kvo_shadow_count; /* Shadow count. */ | int kvo_shadow_count; /* Shadow count. */ | ||||
int kvo_memattr; /* Memory attribute. */ | int kvo_memattr; /* Memory attribute. */ | ||||
uint64_t kvo_resident; /* Number of resident pages. */ | uint64_t kvo_resident; /* Number of resident pages. */ | ||||
uint64_t kvo_active; /* Number of active pages. */ | uint64_t kvo_active; /* Number of active pages. */ | ||||
uint64_t kvo_inactive; /* Number of inactive pages. */ | uint64_t kvo_inactive; /* Number of inactive pages. */ | ||||
uint64_t kvo_vn_fsid; | uint64_t kvo_vn_fsid; | ||||
uint64_t _kvo_qspare[7]; | uint64_t _kvo_qspare[7]; | ||||
uint32_t _kvo_ispare[8]; | uint32_t _kvo_ispare[8]; | ||||
char kvo_path[PATH_MAX]; /* Pathname, if any. */ | char kvo_path[OLD_PATH_MAX]; /* Pathname, if any. */ | ||||
}; | }; | ||||
/* | /* | ||||
* The KERN_PROC_KSTACK sysctl allows a process to dump the kernel stacks of | * The KERN_PROC_KSTACK sysctl allows a process to dump the kernel stacks of | ||||
* another process as a series of entries. Each stack is represented by a | * another process as a series of entries. Each stack is represented by a | ||||
* series of symbol names and offsets as generated by stack_sbuf_print(9). | * series of symbol names and offsets as generated by stack_sbuf_print(9). | ||||
*/ | */ | ||||
#define KKST_MAXLEN 1024 | #define KKST_MAXLEN 1024 | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |