On Thu, Nov 17, 2005 at 19:58:27 -0500, Sabyasachi Pradhan wrote: > I need to save the current state of the kernel. For this I am > reading the /proc/kcore file. As my understanding goes /proc/kcore gives > the whole memory of the system and is dynamic. Is it possible to use a > kernel lock mechanism like BKL so that when reading from this file, the > file doesnt change ? Any comments on this approach or any new suggestions > will be appretiated. You are joking, right? You want to save kernel state from userland? Anyway, why do you want to save the state? There is already code, that saves kernel state -- swsusp2. Have you looked at it? -- Jan 'Bulb' Hudec <bulb@xxxxxx>
Attachment:
signature.asc
Description: Digital signature