summaryrefslogtreecommitdiff
path: root/procfs/procfs.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-27 21:09:04 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-27 21:09:04 +0000
commit933245bb5ae26d6672d52c81ce57c2f8a32e2eb5 (patch)
treeb45a7fe0b8ab2ec3195093f0383a992134c1e8f2 /procfs/procfs.h
parent12ad6153215578c57db2937648d3fa9612217100 (diff)
parent21adb5284111190057db245cfc2b54091920c373 (diff)
Merge branch 'upstream-merged'
Diffstat (limited to 'procfs/procfs.h')
-rw-r--r--procfs/procfs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/procfs/procfs.h b/procfs/procfs.h
index 64782ec4..d04bbad7 100644
--- a/procfs/procfs.h
+++ b/procfs/procfs.h
@@ -51,6 +51,9 @@ struct procfs_node_ops
/* Destroy this node. */
void (*cleanup) (void *hook);
+
+ /* Get the passive translator record. */
+ error_t (*get_translator) (void *hook, char **argz, size_t *argz_len);
};
/* These helper functions can be used as procfs_node_ops.cleanup_contents. */
@@ -91,3 +94,6 @@ error_t procfs_get_contents (struct node *np, char **data, ssize_t *data_len);
error_t procfs_lookup (struct node *np, const char *name, struct node **npp);
void procfs_cleanup (struct node *np);
+/* Get the passive translator record if any. */
+error_t procfs_get_translator (struct node *np, char **argz, size_t *argz_len);
+