DOCUMENT ID:  1075-02

SYNOPSIS:     Problems in the sample STREAMS driver given in the answerbook

OS RELEASE:   2.x

PRODUCT:      Solaris

KEYWORDS:     sample STREAMS driver answerbook


DESCRIPTION:

Some problems in the sample STREAMS driver given in the answerbook.


SOLUTION:

Problem 1:

The sample driver includes , which is not
found in /usr/include/sys directory.

Resolution:

This header file can be found in the directory
/usr/src/uts/`arch -k`/sys where `arch -k` will give one of
the following:  sun4, sun4c, sun4d, sun4e, sun4m.
       
Note: This header file is not essential for the given sample
driver.


Problem 2:

The 5th entry in the dev_ops structure (devo_probe entry) is
nodev.

Resolution:

It should be 'xxprobe' instead of 'nodev'. Also add the
following 'xxprobe' routine to the driver.

        static int
        xxprobe (dev_info_t *dev)
        {
                return (DDI_PROBE_DONTCARE);
        }


DATE APPROVED: 09/11/95