Connecting, Sending, and Receiving

Data with the ATM Device Driver

Connecting to the ATM device driver involves several steps, some of which include several ioctl calls. To create a more standardized interface for user space applications, a set of atm_util functions is available to application writers. An overview of those functions is provided in TABLE C-4. For more detailed information, refer to the atm_util(3) man page. The ma(7) man page contains a more detailed discussion of the driver-supported ioctls.

TABLE C-4atm_util Function Overview

Name

Functionality

Kernel Equivalent

 

 

 

atm_open

atm_close

atm_attach

atm_detach

atm_bind atm_unbind atm_setraw atm_add_vpci atm_delete_vpci atm_allocate_bw

Opens a stream to the ATM device driver

Must be done by a user space setup

 

program

 

Closes a stream to the ATM device driver

Must be done by a user space setup

 

program

 

Attaches to a physical interface

Must be done by a user space setup

 

program

 

Detaches from a physical interface

Must be done by a user space setup

 

program

 

Binds to a Service Access Point

send DL_BIND_REQ

Unbinds from a Service Access Point

send DL_UNBIND_REQ

Sets the encapsulation mode to raw

Send DLIOCRAW

Associates a vpci with this connection

A_ADDVC

ioctl

Dissociates a vpci from this connection

A_DELVC

ioctl

Allocates constant bit rate bandwidth for

A_ALLOCBW ioctl

this connection

 

 

atm_allocate_cbr_bw

Allocates constant bit rate bandwidth

A_ALLOCBW_CBR

ioctl

 

with more granularity than

 

 

 

atm_allocate_bw

 

 

atm_allocate_vbr_bw

Allocates variable bit rate bandwidth

A_ALLOCBW_VBR

ioctl

atm_release_bw

Releases previously allocated bandwidth

A_RELSE_BW ioctl

 

 

 

 

96 SunATM 3U CompactPCI Adapter Installation and User’s Guide • February 2001

Page 118
Image 118
Sun Microsystems 3U manual Table C-4atmutil Function Overview