aboutsummaryrefslogtreecommitdiff
path: root/rootdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'rootdir.c')
-rw-r--r--rootdir.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/rootdir.c b/rootdir.c
index 79928446..17fdb93a 100644
--- a/rootdir.c
+++ b/rootdir.c
@@ -132,6 +132,13 @@ rootdir_gc_loadavg (void *hook, void **contents, size_t *contents_len)
}
static error_t
+rootdir_gc_empty (void *hook, void **contents, size_t *contents_len)
+{
+ *contents_len = 0;
+ return 0;
+}
+
+static error_t
rootdir_gc_fakeself (void *hook, void **contents, size_t *contents_len)
{
*contents = "1";
@@ -189,6 +196,13 @@ static struct procfs_dir_entry rootdir_entries[] = {
},
},
{
+ .name = "meminfo",
+ .make_node = rootdir_file_make_node,
+ .hook = & (struct procfs_node_ops) {
+ .get_contents = rootdir_gc_empty,
+ },
+ },
+ {
.name = "self",
.make_node = rootdir_symlink_make_node,
.hook = & (struct procfs_node_ops) {