summaryrefslogtreecommitdiffstats
path: root/Documentation/bus-virt-phys-mapping.txt
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2018-12-17 20:45:36 +0100
committerMatthew Wilcox <willy@infradead.org>2019-01-07 03:24:43 +0100
commit4a31896c5b5a2715ecf4033426aa0a35066d92d6 (patch)
treeea33358cfa40d96ce92fb8605c7a8639f00cac5f /Documentation/bus-virt-phys-mapping.txt
parentXArray: Turn xa_init_flags into a static inline (diff)
downloadlinux-4a31896c5b5a2715ecf4033426aa0a35066d92d6.tar.xz
linux-4a31896c5b5a2715ecf4033426aa0a35066d92d6.zip
XArray: Change xa_for_each iterator
There were three problems with this API: 1. It took too many arguments; almost all users wanted to iterate over every element in the array rather than a subset. 2. It required that 'index' be initialised before use, and there's no realistic way to make GCC catch that. 3. 'index' and 'entry' were the opposite way round from every other member of the XArray APIs. So split it into three different APIs: xa_for_each(xa, index, entry) xa_for_each_start(xa, index, entry, start) xa_for_each_marked(xa, index, entry, filter) Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'Documentation/bus-virt-phys-mapping.txt')
0 files changed, 0 insertions, 0 deletions