diff options
| author | Alexey Dobriyan <[email protected]> | 2008-08-12 15:09:02 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-08-12 16:07:30 -0700 |
| commit | 50ac2d694f2dd1658341cf97bcf2ffb836d772cb (patch) | |
| tree | c4466ecb7c5211ee9423380783f00027411d5d5a /include/linux/debugobjects.h | |
| parent | dd763460eb628b57814251a15a39f8d75c044d76 (diff) | |
seq_file: add seq_cpumask(), seq_nodemask()
Short enough reads from /proc/irq/*/smp_affinity return -EINVAL for no
good reason.
This became noticed with NR_CPUS=4096 patches, when length of printed
representation of cpumask becase 1152, but cat(1) continued to read with
1024-byte chunks. bitmap_scnprintf() in good faith fills buffer, returns
1023, check returns -EINVAL.
Fix it by switching to seq_file, so handler will just fill buffer and
doesn't care about offsets, length, filling EOF and all this crap.
For that add seq_bitmap(), and wrappers around it -- seq_cpumask() and
seq_nodemask().
Signed-off-by: Alexey Dobriyan <[email protected]>
Reviewed-by: Paul Jackson <[email protected]>
Cc: Mike Travis <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions