diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-09-19 10:01:57 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-09-29 12:39:30 +0200 |
commit | af68bfc377c4f56a1355d856fe2c666fec6b0d5f (patch) | |
tree | 294320a2e2243718a42be13380bc38025959c5a3 /procfs/procfs.h | |
parent | 1fb3542ef83f01e913d9944b093de8d5c178e5d7 (diff) |
procfs: generalize the translator linkage code
Generalize the translator linkage code previously introduced for the
`mounts' node.
* procfs/rootdir.c (struct procfs_translated_node_ops): New
specialized node operations structure for translated nodes.
(rootdir_mounts_make_node): Generalize and rename to
rootdir_make_translated_node. Also, pass the entry_hook to
procfs_make_node so that...
(rootdir_mounts_get_translator): ... can be generalized to
rootdir_translated_node_get_translator and read the argz vector from
the hooked structure.
(ROOTDIR_DEFINE_TRANSLATED_NODE): New convenience macro to define
translated nodes.
(rootdir_entries): Use the new code for the `mounts' node.
Diffstat (limited to 'procfs/procfs.h')
0 files changed, 0 insertions, 0 deletions