Quoting Justus Winter (2014-09-21 12:12:34)
> Generalize the translator linkage code previously introduced for the
> `mounts' node.
> ...
> (ROOTDIR_DEFINE_TRANSLATED_NODE): New convenience macro to define
> translated nodes.
> ...
> +#define ROOTDIR_DEFINE_TRANSLATED_NODE(ARGZ)                     \
> +  &(struct procfs_translated_node_ops) {                         \
> +    .node_ops = {                                                \
> +      .get_translator = rootdir_translated_node_get_translator,          \
> +    },                                                           \
> +    .npp = &rootdir_mounts_node,                                 \
               ^ doh, that was rather stoopid :/
> +    .argz = (ARGZ),                                              \
> +    .argz_len = sizeof (ARGZ),                                   \
> +  }
> +

Reply via email to