diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2022-10-22 18:07:37 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2022-10-24 21:39:48 +0000 |
commit | b5a81075903b3d97265151960b731210c0e80244 (patch) | |
tree | dbecca56e66897984d1f276b1b4a3fe5be7db741 /sys/compat/linuxkpi/common/include | |
parent | eefd863cbae9d7b2f5c83948b45be13951a0c495 (diff) | |
download | src-b5a81075903b3d97265151960b731210c0e80244.tar.gz src-b5a81075903b3d97265151960b731210c0e80244.zip |
LinuxKPI: seq_file add "private" versions.
Add __seq_open_private() and seq_release_private() needed by iwlwifi
debugfs support.
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D37089
Diffstat (limited to 'sys/compat/linuxkpi/common/include')
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/seq_file.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/seq_file.h b/sys/compat/linuxkpi/common/include/linux/seq_file.h index e925c6d8c2ae..8fb93646f9a5 100644 --- a/sys/compat/linuxkpi/common/include/linux/seq_file.h +++ b/sys/compat/linuxkpi/common/include/linux/seq_file.h @@ -69,6 +69,9 @@ struct seq_operations { ssize_t seq_read(struct linux_file *, char *, size_t, off_t *); int seq_write(struct seq_file *seq, const void *data, size_t len); +void *__seq_open_private(struct linux_file *, const struct seq_operations *, int); +int seq_release_private(struct inode *, struct linux_file *); + int seq_open(struct linux_file *f, const struct seq_operations *op); int seq_release(struct inode *inode, struct linux_file *file); |