summaryrefslogtreecommitdiffstats
path: root/src/include/usr/vfs
diff options
context:
space:
mode:
authorDoug Gilbert <dgilbert@us.ibm.com>2012-01-13 09:40:41 -0600
committerDouglas R. Gilbert <dgilbert@us.ibm.com>2012-01-19 14:47:50 -0600
commit11a2e07a97bb44005dfd8fe8bac690014b3e2a81 (patch)
tree3a8492a5476e540ced0cbb7cb21c8d16b0936f9f /src/include/usr/vfs
parent67ab5c65b2caabff6147143a90ab5584573e24ae (diff)
downloadtalos-hostboot-11a2e07a97bb44005dfd8fe8bac690014b3e2a81.tar.gz
talos-hostboot-11a2e07a97bb44005dfd8fe8bac690014b3e2a81.zip
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 <dcrowell@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Diffstat (limited to 'src/include/usr/vfs')
-rw-r--r--src/include/usr/vfs/vfs.H14
1 files changed, 14 insertions, 0 deletions
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
OpenPOWER on IntegriCloud