signals
In-Reply-To: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

The only way it makes sense to talk about suspending
a process in user space from the kernel, would be in a MP system. in a
UP system, if you are in the kernel, then there is no process in user
space. (it trapped into the kernel whenever whatever interrupt that
stasrted you running happenned).  In SMP you may need to set some flag
and send an IP to all teh processes to ensure that the process enters
the kernel to see the flag.  Depending on what you wnat to do, it is
possible that ptrace (as DES says) is what you want, or maybe just a 
SIGSTOP will do.


On Thu, 6 Feb 2003, Dag-Erling Smorgrav wrote:

> Andrey Simonenko <[EMAIL PROTECTED]> writes:
> > In short: I need to stop (suspend) some process from the kernel, when
> > that process is in user mode and get information about its general-purpose
> > registers, its VM structures, etc.
> 
> Have you looked at ptrace(2)?  That's what gdb(1) uses.  You can get
> additional information about memory maps etc. from procfs.
> 
> DES
> -- 
> Dag-Erling Smorgrav - [EMAIL PROTECTED]
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
> 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to