/barrelfish-2018-10-04/include/barrelfish/ |
H A D | caddr.h | 51 * \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 D | slot_alloc.h | 43 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 D | debug.h | 38 int debug_print_cnoderef(char *buf, size_t len, struct cnoderef cnode);
|
/barrelfish-2018-10-04/usr/init/ |
H A D | spawn.c | 26 .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 D | trace.c | 40 .cnode = cnode_task, 90 .cnode = cnode_task, 94 .cnode = taskcn, 122 .cnode = cnode_task,
|
/barrelfish-2018-10-04/lib/mm/ |
H A D | slot_alloc.c | 25 /// 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 D | delete.c | 48 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 D | revoke.c | 98 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 D | capabilities.c | 30 .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 D | debug.c | 159 "(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 D | single_slot_alloc.c | 3 * \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 D | slot_alloc.c | 60 // 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 D | range_slot_alloc.c | 18 * \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 D | main.c | 51 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 D | acpi_allocators_arch.c | 42 .cnode = cnode_task,
|
/barrelfish-2018-10-04/usr/monitor/ |
H A D | spawn.c | 41 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 D | send_cap.c | 68 .cnode = { 69 .cnode = cnaddr,
|
/barrelfish-2018-10-04/usr/kaluga/ |
H A D | int_caps.c | 21 .cnode = arg->argnode_ref,
|
/barrelfish-2018-10-04/lib/driverkit/ |
H A D | map_devices.c | 34 .cnode = ROOTCN_SLOT_ADDR(ROOTCN_SLOT_ARGCN), 39 .cnode = argcn_cnref,
|
/barrelfish-2018-10-04/lib/spawndomain/ |
H A D | spawn.c | 78 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 D | acpi_allocators.c | 118 // 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 D | spawn_arch.c | 73 .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 D | spawn_arch.c | 73 .cnode = si->segcn, 104 .cnode = si->segcn, 131 .cnode = si->segcn, 163 .cnode = si->rootcn,
|
/barrelfish-2018-10-04/kernel/ |
H A D | startup.c | 32 /// 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 D | spawn_arch.c | 77 .cnode = si->segcn, 108 .cnode = si->segcn, 135 .cnode = si->segcn, 237 .cnode = si->rootcn,
|