Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: karl@bagpuss.demon.co.uk (Karl Strickland)
Subject: SMP Drivers on OSF/1 3.0 - DEV_FUNNEL or DEV_FUNNEL_NULL ?
Date: 05 Feb 1995 22:14:55 GMT	[thread overview]
Message-ID: <KARL.95Feb5221455@bagpuss.demon.co.uk> (raw)

OK, say you decide to cheat and force all your driver's kernel threads
onto the master CPU using a funnel.  What do you put in the [bc]devsw[]
table; is it DEV_FUNNEL or DEV_FUNNEL_NULL ?

DEC's 'Writing Device Drivers: Advanced Topics' manual seems to give
conflicting information.

	Section 2.3.3 says:
	"... You funnel a device driver onto a single CPU by
	setting the d_funnel member of the bdevsw or cdevsw table
	to the value DEV_FUNNEL.  This value causes the kernel to
	make the appropriate calls to unix_master and unix_release
	to force execution of the driver onto the master CPU."

	Section 5.2 says:
	"... You set this member to the DEV_FUNNEL_NULL constant to
	schedule a device driver onto a single processor.  Do this if
	you have not used the simple or complex lock mechanism to
        make your device driver SMP safe. To schedule a device driver
	onto multiple processors, set this member to the DEV_FUNNEL
	constant."

So which is correct?  Or am I misreading it?

Please email & post if possible - news is a bit flakey round here
just now!

Thanks in advance!
--
------------------------------------------+-----------------------------------
Posted using GNUS 4.1 on FreeBSD          |                    Karl Strickland
PGP 2.3a Public Key Available.            | Internet: karl@bagpuss.demon.co.uk
"VI. THE SHELL" - BSD PS2:1-9 :-)         |


                 reply	other threads:[~1995-02-05 22:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox