Searched refs:cnode (Results 1 - 25 of 77) sorted by relevance

1234

/barrelfish-2018-10-04/include/barrelfish/
H A Dcaddr.h51 * \return the cnode component of the address, i.e. the address with the slot
71 capaddr_t cnode; member in struct:cnoderef
76 /*croot*/ 0, /*cnode*/ 0, \
84 struct cnoderef cnode; member in struct:capref
88 #define NULL_CAP (struct capref){ /*cnode*/ NULL_CNODE, /*slot*/ 0 }
92 return cnoderef.croot == 0 && cnoderef.cnode == 0;
97 return cnoderef_is_null(capref.cnode) && capref.slot == 0;
118 return cap.cnode.level + 1;
128 switch (cap.cnode.level) {
133 return cap.cnode
[all...]
H A Dslot_alloc.h43 struct capref cap; ///< Cap of the cnode the allocator is tracking
44 struct cnoderef cnode; ///< Cnode the allocator is tracking member in struct:single_slot_allocator
66 struct capref cnode_cap; ///< capref for the L1 cnode
67 struct cnoderef cnode; ///< cnoderef for the cnode to allocate from member in struct:range_slot_allocator
82 struct capref cap, struct cnoderef cnode,
H A Ddebug.h38 int debug_print_cnoderef(char *buf, size_t len, struct cnoderef cnode);
/barrelfish-2018-10-04/usr/init/
H A Dspawn.c26 .cnode = cnode_root,
30 .cnode = si->rootcn,
47 dest.cnode = si->taskcn;
49 src.cnode = cnode_task;
57 dest.cnode = si->rootcn;
59 src.cnode = cnode_root;
67 dest.cnode = si->taskcn;
69 src.cnode = cnode_task;
77 dest.cnode = si->taskcn;
79 src.cnode
[all...]
/barrelfish-2018-10-04/lib/trace/
H A Dtrace.c40 .cnode = cnode_task,
90 .cnode = cnode_task,
94 .cnode = taskcn,
122 .cnode = cnode_task,
/barrelfish-2018-10-04/lib/mm/
H A Dslot_alloc.c25 /// Allocate a new cnode if needed
42 // Retype to and build the next cnode
59 &this->meta[refill].cap.cnode, L2_CNODE_SLOTS);
78 // Allocate from next cnode
99 * \param initial_cnode First cap in an empty cnode to start allocating from
100 * \param initial_space Number of slots free in initial cnode
127 this->cap.cnode.croot = CPTR_ROOTCN;
128 this->cap.cnode.cnode = ROOTCN_SLOT_ADDR(ROOTCN_SLOT_SLOT_ALLOC0);
129 this->cap.cnode
152 struct capref cnode; local
[all...]
/barrelfish-2018-10-04/usr/tests/distops/
H A Ddelete.c48 struct capref cnode; member in struct:server_state
67 // First call: store copy of received cnode
68 err = slot_alloc(&st->cnode);
69 PANIC_IF_ERR(err, "slot alloc in root cnode in server");
70 err = cap_copy(st->cnode, cap);
71 PANIC_IF_ERR(err, "cap copy to root cnode");
73 printf("distops_delete: deleting one cnode copy on foreign core\n");
85 printf("server: check that cnode deleted (CNodes are not moveable)\n");
87 err = cap_destroy(st->cnode);
105 struct capref cnode; member in struct:client_state
[all...]
H A Drevoke.c98 struct capref cnode; ///< CNode that contains all the small Frames member in struct:client_state
99 struct capref frame; ///< First slot in cnode
118 err = cnode_create_l2(&cst->cnode, &cst->frame.cnode);
/barrelfish-2018-10-04/lib/barrelfish/
H A Dcapabilities.c30 .cnode = 0, \
37 .cnode = CPTR_TASKCN_BASE, \
42 .cnode = CPTR_PAGECN_BASE, \
50 .cnode = CPTR_BASE_PAGE_CN_BASE,
57 .cnode = CPTR_SUPERCN_BASE,
67 .cnode = CPTR_MODULECN_BASE,
74 .cnode = TASK_CNODE_INIT,
80 .cnode = TASK_CNODE_INIT,
86 .cnode = TASK_CNODE_INIT,
92 .cnode
[all...]
H A Ddebug.c159 "(cnode=%"PRIxLPADDR")"
161 cap->u.l2cnode.cnode,
360 struct cnoderef cnode = build_cnoderef(l2cnode, 1); local
366 .cnode = cnode, .slot = i
405 /* find out size of root cnode */
418 struct cnoderef cnode = build_cnoderef(root, 0); local
420 .cnode = cnode, .slot = slot
451 int debug_print_cnoderef(char *buf, size_t len, struct cnoderef cnode) argument
[all...]
/barrelfish-2018-10-04/lib/barrelfish/slot_alloc/
H A Dsingle_slot_alloc.c3 * \brief Slot allocator for a single cnode
6 * The worst case requirement is the number of slots in the cnode / 2.
33 ret->cnode = sca->cnode;
68 // Entire cnode was allocated
151 if (!cnodecmp(cap.cnode, sca->cnode)) {
204 struct capref cap, struct cnoderef cnode,
216 ret->cnode = cnode;
203 single_slot_alloc_init_raw(struct single_slot_allocator *ret, struct capref cap, struct cnoderef cnode, cslot_t nslots, void *buf, size_t buflen) argument
252 struct cnoderef cnode; local
[all...]
H A Dslot_alloc.c60 // If there's two root cnode slots left, we need to trigger refill as
61 // the multi slot allocator might need a root cnode slot as well if it's
93 // Double size of root cnode
122 DEBUG_ERR(err, "resizing root cnode");
129 DEBUG_ERR(err, "deleting old root cnode");
154 if (cnodecmp(ret.cnode, cnode_base)) { // Detect frees in basecn
158 if (cnodecmp(ret.cnode, cnode_root)) {
181 struct cnoderef cnode; local
198 cap.cnode = cnode_root;
200 cnode
[all...]
H A Drange_slot_alloc.c18 * \brief Allocate slots out of a cnode
62 ret->cnode = alloc->cnode;
88 * \param slot Slot number in the cnode to start inserting from
117 * \param slot Slot number in the cnode to start inserting from
167 * \brief Free slots belonging to the cnode
185 while (!cnodecmp(cap.cnode, alloc->cnode)) {
226 * \brief Constructor for a new instance of a single cnode cspace_allocator
229 * \param nslots Desired number of slots the cnode shoul
[all...]
/barrelfish-2018-10-04/usr/examples/xmpl-cow/
H A Dmain.c51 struct capref f = (struct capref) { .cnode = cow_frames, .slot = frame_id };
79 struct cnoderef cnode; local
92 err = cnode_create(&cncap, &cnode, cap_count, &slots);
96 struct capref first_frame = (struct capref) { .cnode = cnode, .slot = 0 };
102 *cow_cn = cnode;
127 struct cnoderef cnode; local
128 err = cnode_create(&cncap, &cnode, chunks, &slots);
131 struct capref fc = (struct capref) { .cnode = cnode,
[all...]
/barrelfish-2018-10-04/usr/acpi/arch/x86/
H A Dacpi_allocators_arch.c42 .cnode = cnode_task,
/barrelfish-2018-10-04/usr/monitor/
H A Dspawn.c41 dest.cnode = si->taskcn;
43 src.cnode = cnode_task;
53 dest.cnode = si->taskcn,
64 dest.cnode = si->taskcn;
76 dest.cnode = si->taskcn;
78 src.cnode = cnode_task;
85 dest.cnode = si->taskcn;
87 src.cnode = cnode_task;
93 dest.cnode = si->taskcn;
95 src.cnode
[all...]
H A Dsend_cap.c68 .cnode = {
69 .cnode = cnaddr,
/barrelfish-2018-10-04/usr/kaluga/
H A Dint_caps.c21 .cnode = arg->argnode_ref,
/barrelfish-2018-10-04/lib/driverkit/
H A Dmap_devices.c34 .cnode = ROOTCN_SLOT_ADDR(ROOTCN_SLOT_ARGCN),
39 .cnode = argcn_cnref,
/barrelfish-2018-10-04/lib/spawndomain/
H A Dspawn.c78 t1.cnode = si->taskcn;
87 .cnode = si->taskcn,
97 t1.cnode = si->taskcn;
134 .cnode = basecn,
162 si->pagecn_cap.cnode = si->rootcn;
298 si->dispframe.cnode = si->taskcn;
367 .cnode = cnode_task,
371 .cnode = si->taskcn,
469 si->argspg.cnode = si->taskcn;
560 * Copies caps from inheritcnode into destination cnode,
1007 struct cnoderef cnode; local
[all...]
/barrelfish-2018-10-04/usr/acpi/
H A Dacpi_allocators.c118 // Here we get a cnode cap, so we need to put it somewhere in the root cnode
119 // As we already have a reserved slot for a phyaddr caps cnode, we put it there
129 .cnode = cnode_root,
138 phys_cap.cnode = build_cnoderef(pacn, CNODE_TYPE_OTHER);
141 ACPI_DEBUG("acpi: creating L2 cnode for device caps\n");
145 if (err_is_fail(err)) { USER_PANIC_ERR(err, "cnode create"); }
147 devframe.cnode = devcnode;
/barrelfish-2018-10-04/lib/spawndomain/arch/aarch64/
H A Dspawn_arch.c73 .cnode = si->segcn,
104 .cnode = si->segcn,
131 .cnode = si->segcn,
163 .cnode = si->rootcn,
/barrelfish-2018-10-04/lib/spawndomain/arch/arm/
H A Dspawn_arch.c73 .cnode = si->segcn,
104 .cnode = si->segcn,
131 .cnode = si->segcn,
163 .cnode = si->rootcn,
/barrelfish-2018-10-04/kernel/
H A Dstartup.c32 /// Quick way to find the base address of a cnode capability
36 * \brief Create caps in 'cnode'
39 * and size 'size' and adds them to a cnode for the init task. The bootinfo is
55 struct capability *cnode; local
64 cnode = &st->supercn->cap;
71 cnode = &st->physaddrcn->cap;
77 cnode = &st->segcn->cap;
85 if (*slot >= cnode_get_slots(cnode)) {
98 caps_locate_slot(get_address(cnode), (*slot)++));
134 /* Set up root cnode an
[all...]
/barrelfish-2018-10-04/lib/spawndomain/arch/x86/
H A Dspawn_arch.c77 .cnode = si->segcn,
108 .cnode = si->segcn,
135 .cnode = si->segcn,
237 .cnode = si->rootcn,

Completed in 120 milliseconds

1234