Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/include/os/freebsd/spl/sys/procfs_list.h
Show All 19 Lines | |||||
*/ | */ | ||||
/* | /* | ||||
* Copyright (c) 2018 by Delphix. All rights reserved. | * Copyright (c) 2018 by Delphix. All rights reserved. | ||||
*/ | */ | ||||
#ifndef _SPL_PROCFS_LIST_H | #ifndef _SPL_PROCFS_LIST_H | ||||
#define _SPL_PROCFS_LIST_H | #define _SPL_PROCFS_LIST_H | ||||
#ifndef _STANDALONE | |||||
#include <sys/kstat.h> | #include <sys/kstat.h> | ||||
#include <sys/mutex.h> | #include <sys/mutex.h> | ||||
/* | /* | ||||
* procfs list manipulation | * procfs list manipulation | ||||
*/ | */ | ||||
Show All 22 Lines | void procfs_list_install(const char *module, | ||||
procfs_list_t *procfs_list, | procfs_list_t *procfs_list, | ||||
int (*show)(struct seq_file *f, void *p), | int (*show)(struct seq_file *f, void *p), | ||||
int (*show_header)(struct seq_file *f), | int (*show_header)(struct seq_file *f), | ||||
int (*clear)(procfs_list_t *procfs_list), | int (*clear)(procfs_list_t *procfs_list), | ||||
size_t procfs_list_node_off); | size_t procfs_list_node_off); | ||||
void procfs_list_uninstall(procfs_list_t *procfs_list); | void procfs_list_uninstall(procfs_list_t *procfs_list); | ||||
void procfs_list_destroy(procfs_list_t *procfs_list); | void procfs_list_destroy(procfs_list_t *procfs_list); | ||||
void procfs_list_add(procfs_list_t *procfs_list, void *p); | void procfs_list_add(procfs_list_t *procfs_list, void *p); | ||||
#else | |||||
typedef int procfs_list_t; | |||||
#endif /* !_STANDALONE */ | |||||
#endif /* _SPL_PROCFS_LIST_H */ | #endif /* _SPL_PROCFS_LIST_H */ |