• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/osfmk/ipc/

Lines Matching refs:space

90 /* Lookup (space, obj) in global hash table */
92 ipc_space_t space,
99 ipc_space_t space,
106 ipc_space_t space,
114 * Converts (space, obj) -> (name, entry).
117 * The space must be locked (read or write) throughout.
122 ipc_space_t space,
129 rv = ipc_hash_local_lookup(space, obj, namep, entryp);
131 assert(!is_fast_space(space) || space->is_tree_hash == 0);
132 if (space->is_tree_hash > 0)
133 rv = ipc_hash_global_lookup(space, obj, namep,
145 * The space must be write-locked.
150 ipc_space_t space,
158 if ((index < space->is_table_size) &&
159 (entry == &space->is_table[index]))
160 ipc_hash_local_insert(space, obj, index, entry);
162 assert(!is_fast_space(space));
163 ipc_hash_global_insert(space, obj, name,
173 * The space must be write-locked.
178 ipc_space_t space,
186 if ((index < space->is_table_size) &&
187 (entry == &space->is_table[index]))
188 ipc_hash_local_delete(space, obj, index, entry);
190 assert(!is_fast_space(space));
191 ipc_hash_global_delete(space, obj, name,
208 #define IH_GLOBAL_HASH(space, obj) \
209 (((((ipc_hash_index_t) ((vm_offset_t)space)) >> 4) + \
229 * Converts (space, obj) -> (name, entry).
233 * The space must be locked (read or write) throughout.
238 ipc_space_t space,
246 assert(space != IS_NULL);
249 assert(!is_fast_space(space));
250 bucket = &ipc_hash_global_table[IH_GLOBAL_HASH(space, obj)];
255 (this->ite_space == space)) {
264 (this->ite_space == space)) {
287 * The space must be write-locked.
292 ipc_space_t space,
299 assert(!is_fast_space(space));
301 assert(space != IS_NULL);
302 assert(entry->ite_space == space);
306 space->is_tree_hash++;
307 assert(space->is_tree_hash <= space->is_tree_total);
309 bucket = &ipc_hash_global_table[IH_GLOBAL_HASH(space, obj)];
325 * The space must be write-locked.
330 ipc_space_t space,
338 assert(!is_fast_space(space));
340 assert(space != IS_NULL);
341 assert(entry->ite_space == space);
345 assert(space->is_tree_hash > 0);
346 space->is_tree_hash--;
348 bucket = &ipc_hash_global_table[IH_GLOBAL_HASH(space, obj)];
367 * Each space has a local reverse hash table, which holds
368 * entries from the space's table. In fact, the hash table
402 * Converts (space, obj) -> (name, entry).
403 * Looks in the space's local table, for table entries.
406 * The space must be locked (read or write) throughout.
411 ipc_space_t space,
420 assert(space != IS_NULL);
423 table = space->is_table;
424 size = space->is_table_size;
454 * Inserts an entry into the space's reverse hash table.
456 * The space must be write-locked.
461 ipc_space_t space,
471 assert(space != IS_NULL);
474 table = space->is_table;
475 size = space->is_table_size;
498 * Deletes an entry from the space's reverse hash table.
500 * The space must be write-locked.
505 ipc_space_t space,
515 assert(space != IS_NULL);
518 table = space->is_table;
519 size = space->is_table_size;