diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-02-22 01:12:47 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-02-22 01:12:47 -0300 |
commit | 6d461a4fe7896faa1aec5a5417888cf179e46b9f (patch) | |
tree | 2e0f1a0b7a5418189c8d53592d33a44d0b356fc9 /ipc/kdbus/main.c | |
parent | 5c545e1fb127a4b11ddc5f1a5ed066b853dd1a1a (diff) |
Linux-libre 4.4.2-gnupck-4.4.2-gnu
Diffstat (limited to 'ipc/kdbus/main.c')
-rw-r--r-- | ipc/kdbus/main.c | 111 |
1 files changed, 0 insertions, 111 deletions
diff --git a/ipc/kdbus/main.c b/ipc/kdbus/main.c deleted file mode 100644 index c2117ea53..000000000 --- a/ipc/kdbus/main.c +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright (C) 2013-2015 Kay Sievers - * Copyright (C) 2013-2015 Greg Kroah-Hartman <gregkh@linuxfoundation.org> - * Copyright (C) 2013-2015 Daniel Mack <daniel@zonque.org> - * Copyright (C) 2013-2015 David Herrmann <dh.herrmann@gmail.com> - * Copyright (C) 2013-2015 Linux Foundation - * - * kdbus is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the - * Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - */ - -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt -#include <linux/fs.h> -#include <linux/init.h> -#include <linux/module.h> - -#include "util.h" -#include "fs.h" -#include "handle.h" -#include "metadata.h" -#include "node.h" - -/* - * This is a simplified outline of the internal kdbus object relations, for - * those interested in the inner life of the driver implementation. - * - * From a mount point's (domain's) perspective: - * - * struct kdbus_domain - * |» struct kdbus_user *user (many, owned) - * '» struct kdbus_node node (embedded) - * |» struct kdbus_node children (many, referenced) - * |» struct kdbus_node *parent (pinned) - * '» struct kdbus_bus (many, pinned) - * |» struct kdbus_node node (embedded) - * '» struct kdbus_ep (many, pinned) - * |» struct kdbus_node node (embedded) - * |» struct kdbus_bus *bus (pinned) - * |» struct kdbus_conn conn_list (many, pinned) - * | |» struct kdbus_ep *ep (pinned) - * | |» struct kdbus_name_entry *activator_of (owned) - * | |» struct kdbus_match_db *match_db (owned) - * | |» struct kdbus_meta *meta (owned) - * | |» struct kdbus_match_db *match_db (owned) - * | | '» struct kdbus_match_entry (many, owned) - * | | - * | |» struct kdbus_pool *pool (owned) - * | | '» struct kdbus_pool_slice *slices (many, owned) - * | | '» struct kdbus_pool *pool (pinned) - * | | - * | |» struct kdbus_user *user (pinned) - * | `» struct kdbus_queue_entry entries (many, embedded) - * | |» struct kdbus_pool_slice *slice (pinned) - * | |» struct kdbus_conn_reply *reply (owned) - * | '» struct kdbus_user *user (pinned) - * | - * '» struct kdbus_user *user (pinned) - * '» struct kdbus_policy_db policy_db (embedded) - * |» struct kdbus_policy_db_entry (many, owned) - * | |» struct kdbus_conn (pinned) - * | '» struct kdbus_ep (pinned) - * | - * '» struct kdbus_policy_db_cache_entry (many, owned) - * '» struct kdbus_conn (pinned) - * - * For the life-time of a file descriptor derived from calling open() on a file - * inside the mount point: - * - * struct kdbus_handle - * |» struct kdbus_meta *meta (owned) - * |» struct kdbus_ep *ep (pinned) - * |» struct kdbus_conn *conn (owned) - * '» struct kdbus_ep *ep (owned) - */ - -static int __init kdbus_init(void) -{ - int ret; - - ret = sysfs_create_mount_point(fs_kobj, KBUILD_MODNAME); - if (ret) - return ret; - - ret = kdbus_fs_init(); - if (ret < 0) { - pr_err("cannot register filesystem: %d\n", ret); - goto exit_dir; - } - - pr_info("initialized\n"); - return 0; - -exit_dir: - sysfs_remove_mount_point(fs_kobj, KBUILD_MODNAME); - return ret; -} - -static void __exit kdbus_exit(void) -{ - kdbus_fs_exit(); - sysfs_remove_mount_point(fs_kobj, KBUILD_MODNAME); - ida_destroy(&kdbus_node_ida); -} - -module_init(kdbus_init); -module_exit(kdbus_exit); -MODULE_LICENSE("GPL"); -MODULE_DESCRIPTION("D-Bus, powerful, easy to use interprocess communication"); -MODULE_ALIAS_FS(KBUILD_MODNAME "fs"); |