From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10650a,df7dc49ca6a6e8fb,start X-Google-Attributes: gid10650a,public X-Google-Thread: fee84,df7dc49ca6a6e8fb,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-02-05 14:14:55 PST Path: nntp.gmd.de!dearn! esoc!linuxed1!peernews.demon.co.uk!demon!bagpuss.demon.co.uk!bagpuss.local.net!karl From: karl@bagpuss.demon.co.uk (Karl Strickland) Newsgroups: comp.unix.internals,comp.unix.osf.osf1 Subject: SMP Drivers on OSF/1 3.0 - DEV_FUNNEL or DEV_FUNNEL_NULL ? Followup-To: comp.unix.internals Date: 05 Feb 1995 22:14:55 GMT Message-ID: NNTP-Posting-Host: bagpuss.local.net Xref: nntp.gmd.de comp.unix.internals:4615 comp.unix.osf.osf1:7502 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 :-) |