Native drivers may not call Toolbox memory management routines, particularly
Memory allocation requests should use either a device family-specific allocation mechanism or the new memory management services. The memory management allocation and deallocation routines are
An example of a family specific allocation mechanism is allocb for STREAMS drivers. allocb is an exported allocation mechanism provided to all STREAMS drivers and protocol modules. allocb uses the appropriate memory management services to its underlying operating system.
The Macintosh native driver memory management services are listed and described in Driver Services Library.