]> Git Repo - linux.git/commit
drivers/base/node.c: use bin_attribute to break the size limitation of cpumap ABI
authorTian Tao <[email protected]>
Fri, 6 Aug 2021 11:02:50 +0000 (23:02 +1200)
committerGreg Kroah-Hartman <[email protected]>
Fri, 13 Aug 2021 08:27:49 +0000 (10:27 +0200)
commit75bd50fa841db5434728d238b8b5659498ccf0ab
treed8e6a805d41ccc283618572f54699dbda8aa6880
parentbb9ec13d156e85dfd6a8afd0bb61ccf5736ed257
drivers/base/node.c: use bin_attribute to break the size limitation of cpumap ABI

Reading /sys/devices/system/cpu/cpuX/nodeX/ returns cpumap and cpulist.
However, the size of this file is limited to PAGE_SIZE because of the
limitation for sysfs attribute.

This patch moves to use bin_attribute to extend the ABI to be more
than one page so that cpumap bitmask and list won't be potentially
trimmed.

Cc: Greg Kroah-Hartman <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Signed-off-by: Tian Tao <[email protected]>
Signed-off-by: Barry Song <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/base/node.c
This page took 0.054995 seconds and 4 git commands to generate.