|
|
Log in / Subscribe / Register

simplify procfs code for seq_file instances V2

From:  Christoph Hellwig <hch-AT-lst.de>
To:  Andrew Morton <akpm-AT-linux-foundation.org>, Alexander Viro <viro-AT-zeniv.linux.org.uk>
Subject:  simplify procfs code for seq_file instances V2
Date:  Wed, 25 Apr 2018 17:47:47 +0200
Message-ID:  <20180425154827.32251-1-hch@lst.de>
Cc:  Alexey Dobriyan <adobriyan-AT-gmail.com>, Greg Kroah-Hartman <gregkh-AT-linuxfoundation.org>, Jiri Slaby <jslaby-AT-suse.com>, Alessandro Zummo <a.zummo-AT-towertech.it>, Alexandre Belloni <alexandre.belloni-AT-bootlin.com>, linux-acpi-AT-vger.kernel.org, drbd-dev-AT-lists.linbit.com, linux-ide-AT-vger.kernel.org, netdev-AT-vger.kernel.org, linux-rtc-AT-vger.kernel.org, megaraidlinux.pdl-AT-broadcom.com, linux-scsi-AT-vger.kernel.org, devel-AT-driverdev.osuosl.org, linux-afs-AT-lists.infradead.org, linux-ext4-AT-vger.kernel.org, jfs-discussion-AT-lists.sourceforge.net, netfilter-devel-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org
Archive-link:  Article

We currently have hundreds of proc files that implement plain, read-only
seq_file based interfaces.  This series consolidates them using new
procfs helpers that take the seq_operations or simple show callback
directly.

A git tree is available at:

    git://git.infradead.org/users/hch/misc.git proc_create.2

Gitweb:

    http://git.infradead.org/users/hch/misc.git/shortlog/refs...

Changes since V1:
 - open code proc_create_data to avoid setting not fully initialized
   entries live
 - use unsigned int for state_size
 - dropped the s390/cio/blacklist hunk as it has a write method
 - dropped the IPMI patch given that IPMI proc support is scheduled for
   removal.


Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds