Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143095887
D37914.id115767.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D37914.id115767.diff
View Options
diff --git a/sys/compat/lindebugfs/lindebugfs.c b/sys/compat/lindebugfs/lindebugfs.c
--- a/sys/compat/lindebugfs/lindebugfs.c
+++ b/sys/compat/lindebugfs/lindebugfs.c
@@ -213,6 +213,16 @@
return (dnode);
}
+struct dentry *
+debugfs_create_file_size(const char *name, umode_t mode,
+ struct dentry *parent, void *data,
+ const struct file_operations *fops,
+ loff_t file_size __unused)
+{
+
+ return debugfs_create_file(name, mode, parent, data, fops);
+}
+
/*
* NOTE: Files created with the _unsafe moniker will not be protected from
* debugfs core file removals. It is the responsibility of @fops to protect
@@ -228,6 +238,7 @@
struct dentry *parent, void *data,
const struct file_operations *fops)
{
+
return (debugfs_create_file(name, mode, parent, data, fops));
}
diff --git a/sys/compat/linuxkpi/common/include/linux/debugfs.h b/sys/compat/linuxkpi/common/include/linux/debugfs.h
--- a/sys/compat/linuxkpi/common/include/linux/debugfs.h
+++ b/sys/compat/linuxkpi/common/include/linux/debugfs.h
@@ -56,8 +56,14 @@
struct dentry *parent, void *data,
const struct file_operations *fops);
-struct dentry *debugfs_create_file_unsafe(const char *name, umode_t mode,
+/* TODO: We currently ignore the `file_size` argument. */
+struct dentry *debugfs_create_file_size(const char *name, umode_t mode,
struct dentry *parent, void *data,
+ const struct file_operations *fops,
+ loff_t file_size);
+
+struct dentry *debugfs_create_file_unsafe(const char *name, umode_t mode,
+struct dentry *parent, void *data,
const struct file_operations *fops);
struct dentry *debugfs_create_mode_unsafe(const char *name, umode_t mode,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 26, 10:52 PM (15 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28030572
Default Alt Text
D37914.id115767.diff (1 KB)
Attached To
Mode
D37914: lindebugfs: Add `debugfs_create_file_size()`
Attached
Detach File
Event Timeline
Log In to Comment