Home
last modified time | relevance | path

Searched refs:ctx_stack (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_context.c75 c->ctx_stack = mmap(NULL, c->ctx_stacksize, prot, in mdb_context_create()
83 if (c->ctx_stack == MAP_FAILED && errno == EBADF) { in mdb_context_create()
88 c->ctx_stack = mmap(NULL, c->ctx_stacksize, prot, in mdb_context_create()
94 if (c->ctx_stack == MAP_FAILED || getcontext(&c->ctx_uc) != 0) { in mdb_context_create()
99 c->ctx_uc.uc_stack.ss_sp = c->ctx_stack; in mdb_context_create()
111 if (munmap(c->ctx_stack, c->ctx_stacksize) == -1) in mdb_context_destroy()
112 fail("failed to unmap stack %p", c->ctx_stack); in mdb_context_destroy()
H A Dmdb_context_impl.h46 void *ctx_stack; /* stack base address */ member
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_context.c64 c->ctx_stack = mdb_alloc_align(c->ctx_stacksize, pagesize, UM_NOSLEEP); in mdb_context_create()
66 if (c->ctx_stack == NULL) { in mdb_context_create()
72 c->ctx_stack, c->ctx_stacksize); in mdb_context_create()
80 mdb_free_align(c->ctx_stack, c->ctx_stacksize); in mdb_context_destroy()