newsp
new = newsp();
extern struct secpolicy *newsp(void);
uint32_t *newsp = (void *)((char *)startprog64 + startprog64_size);
newsp -= argc;
memcpy(newsp, argv, sizeof(*argv) * argc);
(physaddr_t)newsp, efi_kernel_size, startprog64, entry);
int addr, onstack, oldsp, newsp, error;
newsp = (int)fp - sizeof(struct rwindow);
ustore_int((u_int *)&((struct rwindow *)newsp)->rw_in[6], oldsp));
tf->tf_out[6] = newsp;
u_int onstack, oldsp, newsp;
newsp = (int)fp - sizeof(struct frame);
ustore_int((u_int *)&((struct rwindow *)newsp)->rw_in[6], oldsp));
tf->tf_out[6] = newsp;
newsp = (int)fp - sizeof(struct rwindow);
ustore_int((u_int *)&((struct rwindow *)newsp)->rw_in[6], oldsp));
tf->tf_out[6] = newsp;
int addr, onstack, oldsp, newsp, error;
newsp = (struct rwindow *)((vaddr_t)fp - sizeof(struct rwindow));
fp, &(((struct rwindow *)newsp)->rw_in[6]),
copyin(oldsp, &tmpwin, sizeof(tmpwin)) || copyout(&tmpwin, newsp, sizeof(tmpwin)) ||
CPOUTREG(&(((struct rwindow *)newsp)->rw_in[6]), tf->tf_out[6]));
tf->tf_out[6] = (vaddr_t)newsp - STACK_OFFSET;
struct rwindow *newsp;
struct rwindow *newsp;
newsp = (struct rwindow *)((u_long)fp - CCFSZ);
copyout(&sp, &newsp->rw_in[6], sizeof(sp)) != 0);
tf->tf_out[6] = (vaddr_t)newsp - STACK_OFFSET;
struct rwindow32 *oldsp, *newsp;
newsp = (struct rwindow32*)((intptr_t)fp - sizeof(struct frame32));
copyout(&sp, &newsp->rw_in[6], sizeof(sp)));
tf->tf_out[6] = (intptr_t)newsp;
struct rwindow32 *oldsp, *newsp;
newsp = (struct rwindow32 *)((long)fp - sizeof(struct rwindow32));
fp, &(((struct rwindow32 *)newsp)->rw_in[6]), oldsp);
copyout(&sp, &(((struct rwindow32 *)newsp)->rw_in[6]),
tf->tf_out[6] = (uint64_t)(u_int)(u_long)newsp;
struct rwindow32 *oldsp, *newsp;
newsp = (struct rwindow32 *)((long)fp - sizeof(struct rwindow32));
fp, &(((struct rwindow32 *)newsp)->rw_in[6]), oldsp);
copyout((void *)&oldsp32, &(((struct rwindow32 *)newsp)->rw_in[6]), sizeof oldsp32));
tf->tf_out[6] = (uint64_t)(u_int)(u_long)newsp;
newsp = (struct rwindow32 *)((long)fp - sizeof(struct rwindow32));
fp, &(((struct rwindow32 *)newsp)->rw_in[6]), oldsp);
copyout(&sp, &(((struct rwindow32 *)newsp)->rw_in[6]),
tf->tf_out[6] = (uint64_t)(u_int)(u_long)newsp;
struct rwindow32 *oldsp, *newsp;
struct secpolicy *newsp, *oldsp;
if ((newsp = key_msg2sp(xpl, len, &error)) == NULL)
key_init_sp(newsp);
newsp->created = time_uptime;
key_socksplist_add(newsp);
*policy = newsp;
kdebug_secpolicy(newsp);
struct secpolicy *newsp = NULL;
newsp = kmem_zalloc(sizeof(struct secpolicy), KM_SLEEP);
"DP from %s:%u return SP:%p\n", where, tag, newsp);
return newsp;
struct secpolicy *newsp;
newsp = KEY_NEWSP();
if (newsp == NULL) {
newsp->spidx.dir = xpl0->sadb_x_policy_dir;
newsp->policy = xpl0->sadb_x_policy_type;
newsp->req = NULL;
return newsp;
key_free_sp(newsp);
struct ipsecrequest **p_isr = &newsp->req;
(*p_isr)->sp = newsp;
return newsp;
key_free_sp(newsp);
struct secpolicy *newsp;
newsp = _key_msg2sp(xpl0, PFKEY_EXTLEN(xpl0), &error, from_kernel);
if (newsp == NULL) {
newsp->id = key_getnewspid();
if (newsp->id == 0) {
kmem_free(newsp, sizeof(*newsp));
newsp->spidx = spidx;
newsp->created = time_uptime;
newsp->lastused = newsp->created;
newsp->lifetime = lft ? lft->sadb_lifetime_addtime : 0;
newsp->validtime = lft ? lft->sadb_lifetime_usetime : 0;
newsp->origin = IPSEC_SPORIGIN_KERNEL;
newsp->origin = IPSEC_SPORIGIN_USER;
key_init_sp(newsp);
KEY_SP_REF(newsp);
sadb_x_policy_id = newsp->id;
*_sp = newsp;
SPLIST_WRITER_INSERT_TAIL(newsp->spidx.dir, newsp);
newsp = NULL;