File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
src/unix/bsd/netbsdlike/netbsd Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -1146,6 +1146,8 @@ ipc_perm
1146
1146
kevent
1147
1147
key_t
1148
1148
killpg
1149
+ kinfo_vmentry
1150
+ kinfo_getvmmap
1149
1151
kqueue
1150
1152
kqueue1
1151
1153
labs
Original file line number Diff line number Diff line change @@ -468,6 +468,29 @@ s! {
468
468
pub struct sched_param {
469
469
pub sched_priority: :: c_int,
470
470
}
471
+
472
+ pub struct kinfo_vmentry {
473
+ pub kve_start: u64 ,
474
+ pub kve_end: u64 ,
475
+ pub kve_offset: u64 ,
476
+ pub kve_type: u32 ,
477
+ pub kve_flags: u32 ,
478
+ pub kve_count: u32 ,
479
+ pub kve_wired_count: u32 ,
480
+ pub kve_advice: u32 ,
481
+ pub kve_attributes: u32 ,
482
+ pub kve_protection: u32 ,
483
+ pub kve_max_protection: u32 ,
484
+ pub kve_ref_count: u32 ,
485
+ pub kve_inheritance: u32 ,
486
+ pub kve_vn_fileid: u64 ,
487
+ pub kve_vn_size: u64 ,
488
+ pub kve_vn_fsid: u64 ,
489
+ pub kve_vn_rdev: u64 ,
490
+ pub kve_vn_type: u32 ,
491
+ pub kve_vn_mode: u32 ,
492
+ pub kve_path: [ [ :: c_char; 32 ] ; 32 ] ,
493
+ }
471
494
}
472
495
473
496
s_no_extra_traits ! {
@@ -2298,6 +2321,8 @@ extern "C" {
2298
2321
pub fn login ( ut : * const utmp ) ;
2299
2322
pub fn logout ( line : * const :: c_char ) ;
2300
2323
pub fn logwtmp ( line : * const :: c_char , name : * const :: c_char , host : * const :: c_char ) ;
2324
+
2325
+ pub fn kinfo_getvmmap ( pid : :: pid_t , cntp : * mut :: size_t ) -> * mut kinfo_vmentry ;
2301
2326
}
2302
2327
2303
2328
cfg_if ! {
You can’t perform that action at this time.
0 commit comments