configfs: implement binary attributes
authorPantelis Antoniou <pantelis.antoniou@konsulko.com>
Thu, 22 Oct 2015 20:30:04 +0000 (23:30 +0300)
committerChristoph Hellwig <hch@lst.de>
Mon, 4 Jan 2016 11:31:46 +0000 (12:31 +0100)
commit03607ace807b414eab46323c794b6fb8fcc2d48c
treea192ae4376e5db9eb02e2563d3c12a7312e677ba
parent4ef7675344d687a0ef5b0d7c0cee12da005870c0
configfs: implement binary attributes

ConfigFS lacked binary attributes up until now. This patch
introduces support for binary attributes in a somewhat similar
manner of sysfs binary attributes albeit with changes that
fit the configfs usage model.

Problems that configfs binary attributes fix are everything that
requires a binary blob as part of the configuration of a resource,
such as bitstream loading for FPGAs, DTBs for dynamically created
devices etc.

Look at Documentation/filesystems/configfs/configfs.txt for internals
and howto use them.

This patch is against linux-next as of today that contains
Christoph's configfs rework.

Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
[hch: folded a fix from Geert Uytterhoeven <geert+renesas@glider.be>]
[hch: a few tiny updates based on review feedback]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Documentation/filesystems/configfs/configfs.txt
fs/configfs/configfs_internal.h
fs/configfs/dir.c
fs/configfs/file.c
fs/configfs/inode.c
include/linux/configfs.h