From owner-freebsd-hackers Thu Jun 8 18: 9:33 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.rdc1.tx.home.com (ha2.rdc1.tx.home.com [24.4.0.67]) by hub.freebsd.org (Postfix) with ESMTP id B945C37BD4D for ; Thu, 8 Jun 2000 18:09:29 -0700 (PDT) (envelope-from miklic@ibm.net) Received: from mail ([24.10.140.87]) by mail.rdc1.tx.home.com (InterMail vM.4.01.02.00 201-229-116) with SMTP id <20000609010929.ROYX11701.mail.rdc1.tx.home.com@mail> for ; Thu, 8 Jun 2000 18:09:29 -0700 Date: Thu, 8 Jun 2000 19:12:36 -0600 From: "Andrew M . Miklic" To: freebsd-hackers@freebsd.org Subject: Processes, context switching in kernel... Message-ID: <20000608191236.E412@Pooh.ibm.net> Reply-To: miklic@ibm.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Balsa 0.8.0 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG All, I'm working on the emulator for OSF1/Mach for FreeBSD/Alpha, and I need some help understanding how to do some things in the FreeBSD kernel--if anyone can answer any of the following questions, it would be greatly appreciated: 1) How do you create a process in the kernel (i.e., you fork in user-space...what's the analogue for kernel-space)? 2) How do you clone a process in kernel-space (i.e., in user-space, you would fork and then share the entire process's memory space--how would you do such a thing in kernel-space)? 3) What needs to be done to perform a context switch (from within the kernel), and are there any MP considerations when doing this? 4) In what files do the proc and the u-area structures reside? Thanks, Andrew Miklic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message