inode.c (f8bade6c9a6213c2c5ba6e5bf32415ecab6e41e5) | inode.c (f2cc020d7876de7583feb52ec939a32419cf9468) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * inode.c - part of tracefs, a pseudo file system for activating tracing 4 * 5 * Based on debugfs by: Greg Kroah-Hartman <greg@kroah.com> 6 * 7 * Copyright (C) 2014 Red Hat Inc, author: Steven Rostedt <srostedt@redhat.com> 8 * --- 463 unchanged lines hidden (view full) --- 472 * @parent: The parent directory that the instances directory will exist 473 * @mkdir: The function to call when a mkdir is performed. 474 * @rmdir: The function to call when a rmdir is performed. 475 * 476 * Only one instances directory is allowed. 477 * 478 * The instances directory is special as it allows for mkdir and rmdir to 479 * to be done by userspace. When a mkdir or rmdir is performed, the inode | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * inode.c - part of tracefs, a pseudo file system for activating tracing 4 * 5 * Based on debugfs by: Greg Kroah-Hartman <greg@kroah.com> 6 * 7 * Copyright (C) 2014 Red Hat Inc, author: Steven Rostedt <srostedt@redhat.com> 8 * --- 463 unchanged lines hidden (view full) --- 472 * @parent: The parent directory that the instances directory will exist 473 * @mkdir: The function to call when a mkdir is performed. 474 * @rmdir: The function to call when a rmdir is performed. 475 * 476 * Only one instances directory is allowed. 477 * 478 * The instances directory is special as it allows for mkdir and rmdir to 479 * to be done by userspace. When a mkdir or rmdir is performed, the inode |
480 * locks are released and the methhods passed in (@mkdir and @rmdir) are | 480 * locks are released and the methods passed in (@mkdir and @rmdir) are |
481 * called without locks and with the name of the directory being created 482 * within the instances directory. 483 * 484 * Returns the dentry of the instances directory. 485 */ 486__init struct dentry *tracefs_create_instance_dir(const char *name, 487 struct dentry *parent, 488 int (*mkdir)(const char *name), --- 64 unchanged lines hidden --- | 481 * called without locks and with the name of the directory being created 482 * within the instances directory. 483 * 484 * Returns the dentry of the instances directory. 485 */ 486__init struct dentry *tracefs_create_instance_dir(const char *name, 487 struct dentry *parent, 488 int (*mkdir)(const char *name), --- 64 unchanged lines hidden --- |