beautypg.com

Tablec4 atm_util function overview – Sun Microsystems 3U User Manual

Page 118

background image

96

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

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

ioctl

s.

TABLE C-4

atm_util

Function Overview

Name

Functionality

Kernel Equivalent

atm_open

Opens a stream to the ATM device driver

Must be done by a user space setup
program

atm_close

Closes a stream to the ATM device driver

Must be done by a user space setup
program

atm_attach

Attaches to a physical interface

Must be done by a user space setup
program

atm_detach

Detaches from a physical interface

Must be done by a user space setup
program

atm_bind

Binds to a Service Access Point

send

DL_BIND_REQ

atm_unbind

Unbinds from a Service Access Point

send

DL_UNBIND_REQ

atm_setraw

Sets the encapsulation mode to raw

Send

DLIOCRAW

atm_add_vpci

Associates a vpci with this connection

A_ADDVC ioctl

atm_delete_vpci

Dissociates a vpci from this connection

A_DELVC ioctl

atm_allocate_bw

Allocates constant bit rate bandwidth for
this connection

A_ALLOCBW ioctl

atm_allocate_cbr_bw

Allocates constant bit rate bandwidth
with more granularity than

atm_allocate_bw

A_ALLOCBW_CBR ioctl

atm_allocate_vbr_bw

Allocates variable bit rate bandwidth

A_ALLOCBW_VBR ioctl

atm_release_bw

Releases previously allocated bandwidth

A_RELSE_BW ioctl