Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../data-stud/../../usr/man/man9f/ddi_dev_is_sid.9f
Real path: /usr/share/man/man9f/ddi_dev_is_sid.9f
Zurück
'\" te .\" Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. .TH ddi_dev_is_sid 9F "16 Jan 2006" "Oracle Solaris 11.4" "Kernel Functions" .SH NAME ddi_dev_is_sid \- tell whether a device is self-identifying .SH SYNOPSIS .LP .nf #include <sys/conf.h> #include <sys/ddi.h> #include <sys/sunddi.h> \fBint\fR \fBddi_dev_is_sid\fR(\fBdev_info_t *\fR\fIdip\fR); .fi .SH INTERFACE LEVEL .sp .LP Solaris DDI specific (Solaris DDI). .SH PARAMETERS .sp .ne 2 .mk .na \fB\fIdip\fR\fR .ad .RS 7n .rt A pointer to the device's \fBdev_info\fR structure. .RE .SH DESCRIPTION .sp .LP The \fBddi_dev_is_sid()\fR function tells the caller whether the device described by \fIdip\fR is self-identifying, that is, a device that can unequivocally tell the system that it exists. This is useful for drivers that support both a self-identifying as well as a non-self-identifying variants of a device (and therefore must be probed). .SH RETURN VALUES .sp .ne 2 .mk .na \fB\fBDDI_SUCCESS\fR\fR .ad .RS 15n .rt Device is self-identifying. .RE .sp .ne 2 .mk .na \fB\fBDDI_FAILURE\fR\fR .ad .RS 15n .rt Device is not self-identifying. .RE .SH CONTEXT .sp .LP The \fBddi_dev_is_sid()\fR function can be called from user, interrupt, or kernel context. .SH EXAMPLES .sp .in +2 .nf 1 ... 2 int 3 bz_probe(dev_info_t *dip) 4 { 5 ... 6 if (ddi_dev_is_sid(dip) == DDI_SUCCESS) { 7 /* 8 * This is the self-identifying version (OpenBoot). 9 * No need to probe for it because we know it is there. 10 * The existence of dip && ddi_dev_is_sid() proves this. 11 */ 12 return (DDI_PROBE_DONTCARE); 13 } 14 /* 15 * Not a self-identifying variant of the device. Now we have to 16 * do some work to see whether it is really attached to the 17 * system. 18 */ 19 ... .fi .in -2 .sp .SH SEE ALSO .sp .LP \fIWriting Device Drivers in Oracle Solaris 11.4\fR \fBprobe\fR(9E)