summaryrefslogtreecommitdiffstats
path: root/src/include/usr/vfs
diff options
context:
space:
mode:
authorDoug Gilbert <dgilbert@us.ibm.com>2011-09-19 10:17:02 -0500
committerDouglas R. Gilbert <dgilbert@us.ibm.com>2011-09-28 10:42:18 -0500
commit3e955c10be1734e2d438f337e7064c3ba8884a73 (patch)
tree8f2991425ba0f201eebf4f0718cdd2d99830e6d9 /src/include/usr/vfs
parentd034089348a197fa870bada40ac9f62523088d09 (diff)
downloadtalos-hostboot-3e955c10be1734e2d438f337e7064c3ba8884a73.tar.gz
talos-hostboot-3e955c10be1734e2d438f337e7064c3ba8884a73.zip
VFS provide assess to read-only data modules
Change-Id: I0178e5b9154f43e092af217931f4570941393d62 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/357 Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Tested-by: Jenkins Server
Diffstat (limited to 'src/include/usr/vfs')
-rw-r--r--src/include/usr/vfs/vfs.H11
-rw-r--r--src/include/usr/vfs/vfs_reasoncodes.H1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/include/usr/vfs/vfs.H b/src/include/usr/vfs/vfs.H
index 9b921c317..c916eb8ce 100644
--- a/src/include/usr/vfs/vfs.H
+++ b/src/include/usr/vfs/vfs.H
@@ -25,6 +25,7 @@
#include <errl/errlentry.H>
#include <sys/vfs.h>
+#include <sys/sync.h>
#include <vector>
namespace VFS
@@ -72,6 +73,16 @@ namespace VFS
*/
bool module_exists(const char * i_name);
+ /**
+ * Get the start memory address of a data module
+ * @param[in] module name
+ * @param[out] o_address memory address
+ * @param[out] o_size module size
+ * @retun error log on error
+ * @pre load_module() must have been called
+ */
+ errlHndl_t module_address(const char * i_name, const char *& o_address, size_t & o_size);
+
};
#endif
diff --git a/src/include/usr/vfs/vfs_reasoncodes.H b/src/include/usr/vfs/vfs_reasoncodes.H
index 3054980cd..ea4410de7 100644
--- a/src/include/usr/vfs/vfs_reasoncodes.H
+++ b/src/include/usr/vfs/vfs_reasoncodes.H
@@ -40,6 +40,7 @@ namespace VFS
VFS_ALLOC_VMEM_FAILED = VFS_COMP_ID | 0x03,
VFS_PERMS_VMEM_FAILED = VFS_COMP_ID | 0x04,
VFS_MODULE_DOES_NOT_EXIST = VFS_COMP_ID | 0x05,
+ VFS_INVALID_DATA_MODULE = VFS_COMP_ID | 0x06,
};
};
OpenPOWER on IntegriCloud