Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
  Previous   Contents   Next 
   
 
Appendix B

Kernel Utility Interface Summary

Kernel Utility Interface Summary

Use the following kernel utilities to develop and maintain drivers.

Table B-1 Kernel Utility Interfaces

Routine

Description

adjmsg(9F)

Trim bytes in a message

allocb(9F)

Allocate a message block

backq(9F)

Get pointer to the queue behind a given queue

bcanput(9F)

Test for flow control in a given priority band

bufcall(9F)

Recover from failure of allocb(9F)

canput(9F)

Test for room in a queue

copymsg(9F)

Copy a message

datamsg(9F)

Test whether message is a data message

dupb(9F)

Duplicate a message block descriptor

dupmsg(9F)

Duplicate a message

enableok(9F)

Re-allow a queue to be scheduled for service

esballoc(9F)

Allocate message and data blocks

flushband(9F)

Flush messages in a given priority band

flushq(9F)

Flush a queue

freeb(9F)

Free a message block

freemsg(9F)

Free all message blocks in a message

freezestr(9F)

Disable changes to the state of the stream

getq(9F)

Get a message from a queue

insq(9F)

Put a message at a specific place in a queue

linkb(9F)

Concatenate two messages into one

msgdsize(9F)

Get the number of data bytes in a message

noenable(9F)

Prevent a queue from being scheduled

otherq(9F)

Get pointer to the queue's partner queue

pullupmsg(9F)

Concatenate and align bytes in a message

putbq(9F)

Return a message to the beginning of a queue

putctl(9F)

Put a control message

putctl1(9F)

Put a control message with a one-byte parameter

putnext(9F)

Put a message to the next queue

putq(9F)

Put a message on a queue

qbufcall(9F)

Call a function when a buffer becomes available

qprocsoff(9F)

Turn off queue processing

qprocson(9F)

Turn on queue processing

qreply(9F)

Send a message on a stream in the reverse direction

qsize(9F)

Find the number of messages on a queue

qtimeout(9F)

Execute a function after a specified length of time

qunbufcall(9F)

Cancel a pending qbufcall request

quntimeout(9F)

Cancel a pending qtimeout request

qwait(9F)

Perimeter wait routine

qwait_sig(9F)

Perimeter wait routine

qwriter(9F)

Asynchronous perimeter upgrade

RD(9F)

Get pointer to the read queue

rmvb(9F)

Remove a message block from a message

rmvq(9F)

Remove a message from a queue

strlog(9F)

Submit messages for logging

strqget(9F)

Obtain information on a queue or a band of the queue

strqset(9F)

Change information on a queue or a band of the queue

testb(9F)

Check for an available buffer

unbufcall(9F)

Cancel bufcall request

unfreezestr(9F)

Enable changes to the state of the stream

unlinkb(9F)

Remove a message block from the head of a message

WR(9F)

Get pointer to the write queue

 
 
 
  Previous   Contents   Next