Writing Device Drivers


SunOS 4.1 system:

	int xxstrategy(buf)
 	struct buf *bp;

SunOS 5.7 system;

	int xxstrategy(struct buf *bp);

Retrieving the minor number from the b_dev field of the buf(9S) structure no longer works (or will work occasionally, and fail in new and notable ways at other times). Use the b_edev field instead.

If the driver allocated buffers uncached, it should now use ddi_dma_sync(9F) whenever consistent view of the buffer is required.