From 11a2e07a97bb44005dfd8fe8bac690014b3e2a81 Mon Sep 17 00:00:00 2001 From: Doug Gilbert Date: Fri, 13 Jan 2012 09:40:41 -0600 Subject: VFS add functions to find module by address and query if module is loaded Change-Id: I471a2a773d42f11ab973f42ca701c8be5191d776 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/611 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell Reviewed-by: Douglas R. Gilbert --- src/include/usr/vfs/vfs.H | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/include/usr/vfs') diff --git a/src/include/usr/vfs/vfs.H b/src/include/usr/vfs/vfs.H index c916eb8ce..f65bfd51c 100644 --- a/src/include/usr/vfs/vfs.H +++ b/src/include/usr/vfs/vfs.H @@ -83,6 +83,20 @@ namespace VFS */ errlHndl_t module_address(const char * i_name, const char *& o_address, size_t & o_size); + /** + * Get the module name associated with an address + * @param[in] i_vaddr, The virtual address + * @returns ptr to module name or NULL if not found + */ + const char * module_find_name(const void * i_vaddr); + + /** + * Query if module is loaded + * @param[in] module name + * @returns [true|false] + */ + bool module_is_loaded(const char * i_name); + }; #endif -- cgit v1.2.1