Messages in this thread | | | Date | Sun, 1 Apr 2012 18:53:39 +0200 | From | Andi Kleen <> | Subject | Re: [PATCH] Extend core dump note section to contain file names of mapped files |
| |
> It uses seq_printf(). It will need refactoring if we would > want to use it for purposes other than /proc pseudo-file > generation.
seq_file just writes to a buffer. I'm sure there's a way to get at that buffer. In theory you could also just copy using read/write and a small temp buffer. The only problem would be to stop it taking the vm sem.
-Andi -- ak@linux.intel.com -- Speaking for myself only.
| |