mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Retire vslock() and vsunlock() with extreme prejudice.
Discussed with: pete
This commit is contained in:
parent
ab1f917b53
commit
aac7652ecd
2 changed files with 0 additions and 31 deletions
|
|
@ -88,8 +88,6 @@ void vmspace_unshare(struct proc *);
|
|||
void vmspace_free(struct vmspace *);
|
||||
void vmspace_exitfree(struct proc *);
|
||||
void vnode_pager_setsize(struct vnode *, vm_ooffset_t);
|
||||
void vslock(void *, u_int);
|
||||
void vsunlock(void *, u_int);
|
||||
void vm_object_print(/* db_expr_t */ long, boolean_t, /* db_expr_t */ long,
|
||||
char *);
|
||||
int vm_fault_quick(caddr_t v, int prot);
|
||||
|
|
|
|||
|
|
@ -179,35 +179,6 @@ useracc(addr, len, rw)
|
|||
return (rv == TRUE);
|
||||
}
|
||||
|
||||
/*
|
||||
* MPSAFE
|
||||
*/
|
||||
void
|
||||
vslock(addr, len)
|
||||
void *addr;
|
||||
u_int len;
|
||||
{
|
||||
|
||||
vm_map_wire(&curproc->p_vmspace->vm_map, trunc_page((vm_offset_t)addr),
|
||||
round_page((vm_offset_t)addr + len),
|
||||
VM_MAP_WIRE_SYSTEM|VM_MAP_WIRE_NOHOLES);
|
||||
}
|
||||
|
||||
/*
|
||||
* MPSAFE
|
||||
*/
|
||||
void
|
||||
vsunlock(addr, len)
|
||||
void *addr;
|
||||
u_int len;
|
||||
{
|
||||
|
||||
vm_map_unwire(&curproc->p_vmspace->vm_map,
|
||||
trunc_page((vm_offset_t)addr),
|
||||
round_page((vm_offset_t)addr + len),
|
||||
VM_MAP_WIRE_SYSTEM|VM_MAP_WIRE_NOHOLES);
|
||||
}
|
||||
|
||||
/*
|
||||
* Create the U area for a new process.
|
||||
* This routine directly affects the fork perf for a process.
|
||||
|
|
|
|||
Loading…
Reference in a new issue