summaryrefslogtreecommitdiff
path: root/ipc/ipc_entry.h
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-04-01 17:17:01 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-05-20 11:08:29 +0200
commit4934e7c3735dbd25953c922a1327a875f47046a4 (patch)
tree5121c579857d27fc5d83e8536ed21d83b9d38307 /ipc/ipc_entry.h
parent77b3b60aaee2382142dc7ed50e5b36664cdb21bc (diff)
ipc: inline key ipc entry lookup functions
Declare functions looking up IPC entries that were previously inlined manually with `static inline' so that they will be inlined into the fast paths by the compiler. * ipc/ipc_entry.c (ipc_entry_lookup, ipc_entry_get, ipc_entry_dealloc): Move functions... * ipc/ipc_space.h: ... here, and declare them as `static inline'. * ipc/ipc_entry.h: Drop associated declarations.
Diffstat (limited to 'ipc/ipc_entry.h')
-rw-r--r--ipc/ipc_entry.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/ipc/ipc_entry.h b/ipc/ipc_entry.h
index 5c1f8fd..b429984 100644
--- a/ipc/ipc_entry.h
+++ b/ipc/ipc_entry.h
@@ -96,21 +96,12 @@ extern struct kmem_cache ipc_entry_cache;
#define ie_alloc() ((ipc_entry_t) kmem_cache_alloc(&ipc_entry_cache))
#define ie_free(e) kmem_cache_free(&ipc_entry_cache, (vm_offset_t) (e))
-extern ipc_entry_t
-ipc_entry_lookup(ipc_space_t space, mach_port_t name);
-
-extern kern_return_t
-ipc_entry_get(ipc_space_t space, mach_port_t *namep, ipc_entry_t *entryp);
-
extern kern_return_t
ipc_entry_alloc(ipc_space_t space, mach_port_t *namep, ipc_entry_t *entryp);
extern kern_return_t
ipc_entry_alloc_name(ipc_space_t space, mach_port_t name, ipc_entry_t *entryp);
-extern void
-ipc_entry_dealloc(ipc_space_t space, mach_port_t name, ipc_entry_t entry);
-
ipc_entry_t
db_ipc_object_by_name(
task_t task,