Next | Prev | Up | Top | Contents | Index

Entry Point Summary

The names of all possible driver entry points and their purposes are summarized in Table 8-1. STREAMS drivers are covered in Chapter 19.

Entry Points in Alphabetic Order
Entry PointPurposeDiscussion
pfxattach LEGO attach entry point.(((TBS)))
pfxcloseNote the device is not in use.page 149
pfxdevflagConstant flag bits for driver features.page 140
pfxdetach LEGO detach entry point.(((TBS)))
pfxdiag LEGO diagnostic entry point.(((TBS)))
pfxedtinitInitialize driver from VECTOR statement.page 144
pfxhalt Prepare for system shutdown.page 168
pfxinitInitialize driver at load or boot time.page 144
pfxintr Handle device interrupt.page 164
pfxioctlImplement control operations.page 150
pfxmapImplement memory-mapping (IRIX).page 159
pfxmmapImplement memory-mapping (SVR4).page 161
pfxopenConnect a process to a device.

Connect a stream module.

page 146

page 543

pfxpollImplement device event test.page 156
pfxprint Display diagnostic about block device.page 169
pfxreadImplement device input.page 152
pfxrput STREAMS message on read queue.page 544
pfxsizeReturn logical size of block device.page 169
pfxsrv STREAMS service queued messages.page 545
pfxstartInitialize driver with interrupts enabled.page 145
pfxstrategy Input/output for a block device.page 154
pfxunloadPrepare loadable module for unloading.page 167
pfxunmapUndo pfxmmap memory mapping.page 162
pfxwput STREAMS message on write queue.page 544
pfxwriteImplement device output.page 152

The use of entry points in different types of drivers is summarized in Table 8-2. The columns of Table 8-2 show the different types of drivers. The table cells show whether a given entry point is optional (O), required (R), or not allowed (N).

Use of Driver Entry Points
Entry PointCharacterBlockPseudoSTREAMS
pfxattach OOOO
pfxcloseRRRR
pfxdetach OOOO
pfxdevflagOOOO
pfxdiag OOOO
pfxedtinitOONN
pfxhalt OOOO
pfxinitOOOO
pfxintr OONN
pfxioctlOOON
pfxmapOOON
pfxmmapOOON
pfxopenRRRR
pfxpollOONO
pfxprint NONN
pfxreadONON
pfxrput NNNR
pfxsizeNRNN
pfxsrv NNNR
pfxstartOOOO
pfxstrategy NRNN
pfxunloadOOOO
pfxunmapOOON
pfxwput NNNR
pfxwriteONON

As can be seen from Table 8-2, no driver supports all entry points.


Next | Prev | Up | Top | Contents | Index