From 4934e7c3735dbd25953c922a1327a875f47046a4 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Wed, 1 Apr 2015 17:17:01 +0200 Subject: 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. --- ipc/ipc_entry.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'ipc/ipc_entry.h') 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, -- cgit v1.2.3