void create_ctx_debugfs(struct ipc_log_context *ctxt, const char *mod_name) { if (!root_dent) check_and_create_debugfs(); if (root_dent) { ctxt->dent = debugfs_create_dir(mod_name, root_dent); if (!IS_ERR(ctxt->dent)) { debug_create("log", 0444, ctxt->dent, ctxt, &debug_ops); debug_create("log_cont", 0444, ctxt->dent, ctxt, &debug_ops_cont); } } add_deserialization_func((void *)ctxt, TSV_TYPE_STRING, dfunc_string); }
static int __init ipc_logging_init(void) { check_and_create_debugfs(); return 0; }