Skip to content

Commit 13afe8a

Browse files
committed
Auto merge of #2798 - devnexen:dfbsd_kvm_update2, r=Amanieu
dragonflybsd adding vmspace data.
2 parents 474d87e + 72b64be commit 13afe8a

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

libc-test/semver/dragonfly.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,6 +1524,7 @@ uuid
15241524
uuid_t
15251525
vm_map_entry_t
15261526
vm_size_t
1527+
vmspace
15271528
wait4
15281529
waitid
15291530
xucred

src/unix/bsd/freebsdlike/dragonfly/mod.rs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ pub type vm_eflags_t = ::c_uint;
4343
pub type vm_map_t = *mut __c_anonymous_vm_map;
4444
pub type vm_map_entry_t = *mut vm_map_entry;
4545

46+
pub type pmap = __c_anonymous_pmap;
47+
4648
#[cfg_attr(feature = "extra_traits", derive(Debug))]
4749
pub enum sem {}
4850
impl ::Copy for sem {}
@@ -360,6 +362,35 @@ s! {
360362
pub id: ::vm_subsys_t,
361363
}
362364

365+
pub struct __c_anonymous_pmap {
366+
_priv1: [::uintptr_t; 32],
367+
_priv2: [::uintptr_t; 32],
368+
_priv3: [::uintptr_t; 32],
369+
_priv4: [::uintptr_t; 32],
370+
_priv5: [::uintptr_t; 8],
371+
}
372+
373+
pub struct vmspace {
374+
vm_map: __c_anonymous_vm_map,
375+
vm_pmap: __c_anonymous_pmap,
376+
pub vm_flags: ::c_int,
377+
pub vm_shm: *mut ::c_char,
378+
pub vm_rssize: ::segsz_t,
379+
pub vm_swrss: ::segsz_t,
380+
pub vm_tsize: ::segsz_t,
381+
pub vm_dsize: ::segsz_t,
382+
pub vm_ssize: ::segsz_t,
383+
pub vm_taddr: *mut ::c_char,
384+
pub vm_daddr: *mut ::c_char,
385+
pub vm_maxsaddr: *mut ::c_char,
386+
pub vm_minsaddr: *mut ::c_char,
387+
_unused1: ::c_int,
388+
_unused2: ::c_int,
389+
pub vm_pagesupply: ::c_int,
390+
pub vm_holdcnt: ::c_uint,
391+
pub vm_refcnt: ::c_uint,
392+
}
393+
363394
pub struct cpuctl_msr_args_t {
364395
pub msr: ::c_int,
365396
pub data: u64,

0 commit comments

Comments
 (0)