Page 22 of 66
Device Instances, Properties, and Configuration Files (cont)
open(9E) and attach(9E) Ordering:
- Solaris supports automatic attachment when an open is attempted
- A driver's open(9E) routine may be called before attach(9E) succeeds
- In this case open(9E) must fail and return ENXIO
- The system will then attempt to attach the device using attach(9E)
- If the call to attach(9E) succeeds, the open(9E) will be retried
Current Implementation:
- Automatic attachment can happen because:
- Entries in /dev and /devices persist across a reboot
- So device special files remain available for open(2) after reboot
- Such an open can cause automatic driver module loading and device attachment described above
FIRST PREVIOUS
NEXT LAST
CONTENTS
Return to White Papers
|