[dm-devel] [PATCH] New device mapper target ZDM

Bart Van Assche Bart.VanAssche at sandisk.com
Tue Nov 22 15:08:02 UTC 2016


On 11/21/16 11:23, Shaun Tancheff wrote:
> +/* -------------------------------------------------------------------------- */
> +/* --ProcFS Support Routines------------------------------------------------- */
> +/* -------------------------------------------------------------------------- */
> +
> +#if defined(CONFIG_PROC_FS)
> +
> +/**
> + * struct zone_info_entry - Proc zone entry.
> + * @zone: Zone Index
> + * @info: Info (WP/Used).
> + */
> +struct zone_info_entry {
> +	u32 zone;
> +	u32 info;
> +};
> +
> +/**
> + * Startup writing to our proc entry
> + */
> +static void *proc_wp_start(struct seq_file *seqf, loff_t *pos)
> +{
> +	struct zdm *znd = seqf->private;
> +
> +	if (*pos == 0)
> +		znd->wp_proc_at = *pos;
> +	return &znd->wp_proc_at;
> +}

Hello Shaun,

Does this mean that you are not aware that it is considered unacceptable 
for new drivers to create procfs entries?

Bart.




More information about the dm-devel mailing list