Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 1997 20:46:14 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        hasty@rah.star-gate.com, luigi@labinfo.iet.unipi.it
Cc:        hackers@FreeBSD.ORG, multimedia@FreeBSD.ORG, rhh@ct.picker.com
Subject:   Re: snd driver attach routine
Message-ID:  <199707141046.UAA02952@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>Problem: what should be the return type of *attach() routines ?

Perhaps it should be void to match reality, but it currently must be
int for isa drivers to match the prototype in `struct isa_driver'.

>The drivers in /sys/pci all return void for the attach routine.

They have to, to match the prototype in `strcuct pci_driver'.

>- move all actions which might fail (e.g. allocate memory ?) to the
>  probe routine;

Impossible, e.g. since probe routines shouldn't allocate memory.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707141046.UAA02952>