From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,83704a4e1e690599 X-Google-Attributes: gidfee84,public From: mcbinc@world.std.com (Monty C. Brandenberg) Subject: Re: Can you lock a kernel device driver to a single processor? Date: 1997/12/04 Message-ID: #1/1 X-Deja-AN: 295200885 Sender: news@world.std.com (Mr Usenet Himself) References: <347EC6B3.319DF0B7@uk.oracle.com> Reply-To: mcbinc@world.std.com Organization: MCB, Inc. Newsgroups: comp.unix.osf.osf1 In <347EC6B3.319DF0B7@uk.oracle.com> Rick Morrell wrote: > Is it possible to configure a kernel device driver so that its > associated threads only execute on a single CPU in a multi-processor > system? > Depends what you mean by 'associated threads.' If this means user-mode application threads invoking the driver via the standard cdevsw/bdevsw- style entry points, then you can declare your driver to be 'funneled' and it will run only on the master cpu. If you mean user-mode threads invoking the driver via other mechanisms, see the unix_master()/unix_release() calls. If you mean mach-style kernel threads, generally, the mach api's are there for you to use, though they're not always well-documented. -- Monty Brandenberg Software Consultant MCB, Inc. mcbinc@world.std.com 617.864.6907