Submit #1192 ยป rootnfs.patch
sys/kern/uipc_msg.c | ||
---|---|---|
#include <vm/pmap.h>
|
||
#include <net/netmsg2.h>
|
||
#include <machine/vmparam.h>
|
||
#include <net/netisr.h>
|
||
#include <net/netmsg.h>
|
||
... | ... | |
lwkt_port_t port;
|
||
int error;
|
||
KKASSERT(!sopt->sopt_val || kva_p(sopt->sopt_val));
|
||
KKASSERT(sopt->sopt_val && (kva_p(sopt->sopt_val) || (vm_offset_t)(sopt->sopt_val) < USRSTACK));
|
||
port = so->so_proto->pr_mport(so, NULL, NULL, PRU_CTLOUTPUT);
|
||
netmsg_init(&msg.nm_netmsg, &curthread->td_msgport, 0,
|
||
netmsg_pru_ctloutput);
|
sys/kern/uipc_socket.c | ||
---|---|---|
#include <machine/limits.h>
|
||
#include <machine/vmparam.h>
|
||
#ifdef INET
|
||
static int do_setopt_accept_filter(struct socket *so, struct sockopt *sopt);
|
||
#endif /* INET */
|
||
... | ... | |
{
|
||
size_t valsize;
|
||
KKASSERT(!sopt->sopt_val || kva_p(sopt->sopt_val));
|
||
KKASSERT(kva_p(buf));
|
||
KKASSERT(sopt->sopt_val && (kva_p(sopt->sopt_val) || (vm_offset_t)(sopt->sopt_val) < USRSTACK));
|
||
KKASSERT(kva_p(buf) || (vm_offset_t)(buf) < USRSTACK);
|
||
/*
|
||
* If the user gives us more than we wanted, we ignore it,
|
||
... | ... | |
{
|
||
size_t valsize;
|
||
KKASSERT(!sopt->sopt_val || kva_p(sopt->sopt_val));
|
||
KKASSERT(kva_p(buf));
|
||
KKASSERT(sopt->sopt_val && (kva_p(sopt->sopt_val) || (vm_offset_t)(sopt->sopt_val) < USRSTACK));
|
||
KKASSERT(kva_p(buf) || (vm_offset_t)(buf) < USRSTACK);
|
||
/*
|
||
* Documented get behavior is that we always return a value,
|
||
... | ... | |
size_t valsize;
|
||
void *val;
|
||
KKASSERT(!sopt->sopt_val || kva_p(sopt->sopt_val));
|
||
KKASSERT(kva_p(m));
|
||
KKASSERT(sopt->sopt_val && (kva_p(sopt->sopt_val) || (vm_offset_t)(sopt->sopt_val) < USRSTACK));
|
||
KKASSERT(kva_p(m) || (vm_offset_t)(m) < USRSTACK);
|
||
if (sopt->sopt_val == NULL)
|
||
return;
|
||
val = sopt->sopt_val;
|
||
... | ... | |
size_t maxsize;
|
||
void *val;
|
||
KKASSERT(!sopt->sopt_val || kva_p(sopt->sopt_val));
|
||
KKASSERT(kva_p(m));
|
||
KKASSERT(sopt->sopt_val && (kva_p(sopt->sopt_val) || (vm_offset_t)(sopt->sopt_val) < USRSTACK));
|
||
KKASSERT(kva_p(m) || (vm_offset_t)(m) < USRSTACK);
|
||
if (sopt->sopt_val == NULL)
|
||
return 0;
|
||
val = sopt->sopt_val;
|