ctxop
static struct ctxop *
struct ctxop *ctx, *head;
ctxop_detach_chain(kthread_t *t, struct ctxop *ctx)
struct ctxop *
struct ctxop *ctx;
ctx = kmem_alloc(sizeof (struct ctxop), KM_SLEEP);
ctxop_free(struct ctxop *ctx)
kmem_free(ctx, sizeof (struct ctxop));
ctxop_attach(kthread_t *t, struct ctxop *ctx)
struct ctxop *head = t->t_ctx, *tail = t->t_ctx->prev;
ctxop_detach(kthread_t *t, struct ctxop *ctx)
struct ctxop *head, *cur;
struct ctxop *ctx;
struct ctxop *ctx, *head;
struct ctxop *ctx, *tail;
struct ctxop *ctx, *head;
struct ctxop *ctx, *head;
struct ctxop *ctx, *head;
struct ctxop *ctx, *head;
struct ctxop *next = ctx->next;
kmem_free(ctx, sizeof (struct ctxop));
freectx_ctx(struct ctxop *ctx)
struct ctxop *head = ctx;
struct ctxop *next = ctx->next;
kmem_free(ctx, sizeof (struct ctxop));
struct ctxop *ctx = NULL;
extern void freectx_ctx(struct ctxop *);
extern struct ctxop *ctxop_allocate(const struct ctxop_template *, void *);
extern void ctxop_free(struct ctxop *);
extern void ctxop_attach(kthread_t *, struct ctxop *);
extern void ctxop_detach(kthread_t *, struct ctxop *);
struct ctxop *next; /* next context ops */
struct ctxop *prev; /* previous context ops */
struct ctxop *ctxop; /* (o) ctxop storage for vcpu */
ctxop_attach(curthread, vcpu->ctxop);
ctxop_detach(curthread, vcpu->ctxop);
ctxop_free(vcpu->ctxop);
vcpu->ctxop = ctxop_allocate(&vmm_ctxop_tpl, &vcpu->vtc);
static struct ctxop *
struct ctxop *ctx = fp_ctxop_allocate(fp);
struct ctxop *ctx;
struct ctxop *ctx;
struct ctxop *ctx;