92f8d7a94f
Add data and methods setting run time parameters via sysfs, and to make state and statistics information available through sysfs. Co-developed-by: J. corwin Coburn <corwin@hurlbutnet.net> Signed-off-by: J. corwin Coburn <corwin@hurlbutnet.net> Co-developed-by: Michael Sclafani <dm-devel@lists.linux.dev> Signed-off-by: Michael Sclafani <dm-devel@lists.linux.dev> Co-developed-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me> Signed-off-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me> Co-developed-by: Bruce Johnston <bjohnsto@redhat.com> Signed-off-by: Bruce Johnston <bjohnsto@redhat.com> Signed-off-by: Matthew Sakai <msakai@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
20 lines
530 B
C
20 lines
530 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright 2023 Red Hat
|
|
*/
|
|
|
|
#ifndef VDO_POOL_SYSFS_H
|
|
#define VDO_POOL_SYSFS_H
|
|
|
|
#include <linux/kobject.h>
|
|
|
|
/* The kobj_type used for setting up the kernel layer kobject. */
|
|
extern const struct kobj_type vdo_directory_type;
|
|
|
|
/* The sysfs_ops used for the "statistics" subdirectory. */
|
|
extern const struct sysfs_ops vdo_pool_stats_sysfs_ops;
|
|
/* The attribute used for the "statistics" subdirectory. */
|
|
extern struct attribute *vdo_pool_stats_attrs[];
|
|
|
|
#endif /* VDO_POOL_SYSFS_H */
|