[lkml]   [2001]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [CFT][PATCH] large /proc/mounts and friends


> 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.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:08    [W:0.093 / U:1.844 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site