Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/module/os/linux/spl/spl-kstat.c
Show First 20 Lines • Show All 480 Lines • ▼ Show 20 Lines | proc_kstat_open(struct inode *inode, struct file *filp) | ||||
rc = seq_open(filp, &kstat_seq_ops); | rc = seq_open(filp, &kstat_seq_ops); | ||||
if (rc) | if (rc) | ||||
return (rc); | return (rc); | ||||
f = filp->private_data; | f = filp->private_data; | ||||
f->private = PDE_DATA(inode); | f->private = PDE_DATA(inode); | ||||
return (rc); | return (0); | ||||
} | } | ||||
static ssize_t | static ssize_t | ||||
proc_kstat_write(struct file *filp, const char __user *buf, size_t len, | proc_kstat_write(struct file *filp, const char __user *buf, size_t len, | ||||
loff_t *ppos) | loff_t *ppos) | ||||
{ | { | ||||
struct seq_file *f = filp->private_data; | struct seq_file *f = filp->private_data; | ||||
kstat_t *ksp = f->private; | kstat_t *ksp = f->private; | ||||
▲ Show 20 Lines • Show All 284 Lines • Show Last 20 Lines |