Messages in this thread |  | | Date | Tue, 16 Oct 2001 14:05:39 +1000 | From | Anton Blanchard <> | Subject | Re: [CFT][PATCH] large /proc/mounts and friends |
| |
Hi,
> Folks, patch below adds a new way to handle large files on procfs. > I've done that for /proc/mounts and /proc/ksyms, but the same trick can > be pulled for anything else. The basic idea: if file consists of records > generated by some sequence of objects, we can just describe an iterator and > use precanned functions to turn it into a file. That (and helpers for > formatting) is done in fs/seq_file.c and include/linux/seq_file.h.
Ahh good I was just going to fix /proc/stat and /proc/interrupts; given enough interrupts and cpus they both overflow 1 page and cause random memory corruption.
Anton - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |