Re: Accessing Pagetable of a process



there is some code in dragonflybsd to checkpoint a process. It will write
the pagetable to disk. Since the internal data structures aren't much
different -you should be able to copy over that code to freebsd. But you
will run into problems with file descriptors that are not of type vnode (eg
fifo/sockets/pipes etc..).

regards
-kamal



On 1/17/06, Pranav Sawargaonkar <pranav.sawargaonkar@xxxxxxxxx> wrote:
>
> Hello,
> I wanted to save the whole context of the process, thats why I want
> the access to each page allocated to the process of our interest. And
> further I want to write all these pages on to swap.
> The final objective is to save the context of a stopped process on
> the swap and restore the context afterwards and resume the process.Whatfunctions can be used to read/write to swap ? I have succeeded
> in accessing the vmspace through the 'struct proc' type pointer.
>
> TIA.
>
> Best regards,
> Pranav
>
> On 1/17/06, Kamal R. Prasad <kamalp@xxxxxxx> wrote:
> >
> >
> >
> > On 1/16/06, Pranav Sawargaonkar < pranav.sawargaonkar@xxxxxxxxx> wrote:
> > >
> > > Hi
> > > I want to access pagetable of a perticular process.
> > > How i should get it?Is it possible to access by using pointer of type
> > > 'struct proc'?
> >
> >
> > by accessimg the vmspace for the process.
> >
> > Also i want to access each page referenced in
> > > pagetable of that process by writing my module how i can achieve
> > > this?
> > > Thanks in advance.
> >
> >
> > the pagetable is for translating virtual to physical addresses If you
> > want the contents of the page -you don't need to worry about the translation
> > scheme. Im not sure I understand what you are looking for??
> >
> > regards
> > -kamal
> >
> >
> > -Pranav
> > > _______________________________________________
> > > freebsd-hackers@xxxxxxxxxxx mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> > > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx
> > > "
> > >
> >
> >
>
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Accessing Pagetable of a process
    ... further I want to write all these pages on to swap. ... in accessing the vmspace through the 'struct proc' type pointer. ... Best regards, ...
    (freebsd-hackers)
  • Re: RS-232, No short No send?
    ... > pin.1 connected to oscilloscope ground.(didn't swap lines) ... > Best regards, ... > Boki. ...
    (sci.electronics.design)
  • RE: Message box date format macro help
    ... i'm not sure if VB is reading these as cell addess much less values in the ... Needless to say it doesent work unless I swap the sign around. ... I want to allow 31 days before the first msg box pops up. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Pedal swap .
    ... I have a mint Boss Octave Pedal that I never use. ... Fancy doing a swap? ...
    (uk.music.guitar)