Inom
Hitta mer dokumentation
Supportresurser som ingår
| Ladda ner denna bok i PDF (1777 KB)
Kernel Functions for Drivers
-
A
-
B
-
backq(9F) - get pointer to the queue behind the current queue
-
bcanput(9F) - test for flow control in specified priority band
-
bcanputnext(9F) - test for room in next module's message queue
-
bcmp(9F) - compare two byte arrays
-
bcopy(9F) - copy data between address locations in the kernel
-
bioclone(9F) - clone another buffer
-
biodone(9F) - release buffer after buffer I/O transfer and notify blocked threads
-
bioerror(9F) - indicate error in buffer header
-
biofini(9F) - uninitialize a buffer structure
-
bioinit(9F) - initialize a buffer structure
-
biomodified(9F) - check if a buffer is modified
-
bioreset(9F) - reuse a private buffer header after I/O is complete
-
biosize(9F) - returns size of a buffer structure
-
biowait(9F) - suspend processes pending completion of block I/O
-
bp_mapin(9F) - allocate virtual address space
-
bp_mapout(9F) - deallocate virtual address space
-
btop(9F) - convert size in bytes to size in pages (round down)
-
btopr(9F) - convert size in bytes to size in pages (round up)
-
bufcall(9F) - call a function when a
buffer becomes available
-
bzero(9F) - clear memory for a given number of bytes
-
C
-
D
-
datamsg(9F) - test whether a message is a data message
-
ddi_add_intr(9F) - hardware interrupt handling routines
-
ddi_add_softintr(9F) - software interrupt handling routines
-
ddi_binding_name(9F) - return driver binding name
-
ddi_btop(9F) - page size conversions
-
ddi_btopr(9F) - page size conversions
-
ddi_check_acc_handle(9F) - Check data access and DMA handles
-
ddi_check_dma_handle(9F) - Check data access and DMA handles
-
ddi_copyin(9F) - copy data to a driver buffer
-
ddi_copyout(9F) - copy data from a driver
-
ddi_create_minor_node(9F) - create a minor node for this device
-
ddi_device_copy(9F) - copy data from one device register to another device register
-
ddi_device_zero(9F) - zero fill the device
-
ddi_devid_compare(9F) - kernel interfaces for device ids
-
ddi_devid_free(9F) - kernel interfaces for device ids
-
ddi_devid_init(9F) - kernel interfaces for device ids
-
ddi_devid_register(9F) - kernel interfaces for device ids
-
ddi_devid_sizeof(9F) - kernel interfaces for device ids
-
ddi_devid_str_decode(9F) - kernel interfaces for device ids
-
ddi_devid_str_encode(9F) - kernel interfaces for device ids
-
ddi_devid_str_free(9F) - kernel interfaces for device ids
-
ddi_devid_unregister(9F) - kernel interfaces for device ids
-
ddi_devid_valid(9F) - kernel interfaces for device ids
-
ddi_dev_is_needed(9F) - inform the
system that a device's component is required
-
ddi_dev_is_sid(9F) - tell whether a device is self-identifying
-
ddi_devmap_segmap(9F) - set up a user mapping to device memory using the devmap framework
-
ddi_dev_nintrs(9F) - return the number of interrupt specifications a device has
-
ddi_dev_nregs(9F) - return the number of register sets a device has
-
ddi_dev_regsize(9F) - return the size of a device's register
-
ddi_dev_report_fault(9F) - Report a
hardware failure
-
ddi_dma_addr_bind_handle(9F) - binds an address to a DMA handle
-
ddi_dma_addr_setup(9F) - easier DMA setup for use with virtual addresses
-
ddi_dma_alloc_handle(9F) - allocate DMA handle
-
ddi_dma_buf_bind_handle(9F) - binds a system buffer to a DMA handle
-
ddi_dma_buf_setup(9F) - easier DMA setup for use with buffer structures
-
ddi_dma_burstsizes(9F) - find out the allowed burst sizes for a DMA mapping
-
ddi_dma_coff(9F) - convert a DMA cookie to an offset within a DMA handle
-
ddi_dma_curwin(9F) - report current DMA window offset and size
-
ddi_dma_devalign(9F) - find DMA mapping alignment and minimum transfer size
-
ddi_dmae_1stparty(9F) - system DMA engine functions
-
ddi_dmae(9F) - system DMA engine functions
-
ddi_dmae_alloc(9F) - system DMA engine functions
-
ddi_dmae_disable(9F) - system DMA engine functions
-
ddi_dmae_enable(9F) - system DMA engine functions
-
ddi_dmae_getattr(9F) - system DMA engine functions
-
ddi_dmae_getcnt(9F) - system DMA engine functions
-
ddi_dmae_getlim(9F) - system DMA engine functions
-
ddi_dmae_prog(9F) - system DMA engine functions
-
ddi_dmae_release(9F) - system DMA engine functions
-
ddi_dmae_stop(9F) - system DMA engine functions
-
ddi_dma_free(9F) - release system DMA resources
-
ddi_dma_free_handle(9F) - free DMA handle
-
ddi_dma_get_attr(9F) - get the device DMA attribute structure from a DMA handle
-
ddi_dma_getwin(9F) - activate a new DMA window
-
ddi_dma_htoc(9F) - convert a DMA handle to a DMA address cookie
-
ddi_dma_mem_alloc(9F) - allocate memory for DMA transfer
-
ddi_dma_mem_free(9F) - free previously allocated memory
-
ddi_dma_movwin(9F) - shift current DMA window
-
ddi_dma_nextcookie(9F) - retrieve subsequent DMA cookie
-
ddi_dma_nextseg(9F) - get next DMA segment
-
ddi_dma_nextwin(9F) - get next DMA window
-
ddi_dma_numwin(9F) - retrieve number of DMA windows
-
ddi_dma_segtocookie(9F) - convert a DMA segment to a DMA address cookie
-
ddi_dma_set_sbus64(9F) - allow 64-bit transfers on SBus
-
ddi_dma_setup(9F) - setup DMA resources
-
ddi_dma_sync(9F) - synchronize CPU and I/O views of memory
-
ddi_dma_unbind_handle(9F) - unbinds the address in a DMA handle
-
ddi_driver_major(9F) - return driver's major device number
-
ddi_driver_name(9F) - return normalized driver name
-
ddi_enter_critical(9F) - enter and exit a critical region of control
-
ddi_exit_critical(9F) - enter and exit a critical region of control
-
ddi_ffs(9F) - find first (last) bit set in a long integer
-
ddi_fls(9F) - find first (last) bit set in a long integer
-
ddi_get16(9F) - read data from the mapped memory address, device register
or allocated DMA memory address
-
ddi_get32(9F) - read data from the mapped memory address, device register
or allocated DMA memory address
-
ddi_get64(9F) - read data from the mapped memory address, device register
or allocated DMA memory address
-
ddi_get8(9F) - read data from the mapped memory address, device register
or allocated DMA memory address
-
ddi_getb(9F) - read data from the mapped memory address, device register
or allocated DMA memory address
-
ddi_get_cred(9F) - returns a pointer to the credential structure of the caller
-
ddi_get_devstate(9F) - Check device state
-
ddi_get_driver_private(9F) - get or set the address of the device's private data
area
-
ddi_get_iblock_cookie(9F) - hardware interrupt handling routines
-
ddi_getiminor(9F) - get
kernel internal minor number from an external dev_t
-
ddi_get_instance(9F) - get device instance number
-
ddi_get_kt_did(9F) - get identifier of current thread
-
ddi_getl(9F) - read data from the mapped memory address, device register
or allocated DMA memory address
-
ddi_get_lbolt(9F) - returns the value
of lbolt
-
ddi_getll(9F) - read data from the mapped memory address, device register
or allocated DMA memory address
-
ddi_getlongprop(9F) - get property
information for leaf device drivers
-
ddi_getlongprop_buf(9F) - get property
information for leaf device drivers
-
ddi_get_name(9F) - return driver binding name
-
ddi_get_parent(9F) - find the parent of a device information structure
-
ddi_get_pid(9F) - returns the process ID
-
ddi_getprop(9F) - get property
information for leaf device drivers
-
ddi_getproplen(9F) - get property
information for leaf device drivers
-
ddi_get_soft_iblock_cookie(9F) - software interrupt handling routines
-
ddi_get_soft_state(9F) - driver soft state utility routines
-
ddi_get_time(9F) - returns the current
time in seconds
-
ddi_getw(9F) - read data from the mapped memory address, device register
or allocated DMA memory address
-
ddi_in_panic(9F) - determine if system
is in panic state
-
ddi_intr_hilevel(9F) - indicate interrupt handler type
-
ddi_io_get16(9F) - read data from the mapped device register in I/O space
-
ddi_io_get32(9F) - read data from the mapped device register in I/O space
-
ddi_io_get8(9F) - read data from the mapped device register in I/O space
-
ddi_io_getb(9F) - read data from the mapped device register in I/O space
-
ddi_io_getl(9F) - read data from the mapped device register in I/O space
-
ddi_io_getw(9F) - read data from the mapped device register in I/O space
-
ddi_iomin(9F) - find minimum alignment and transfer size for DMA
-
ddi_iopb_alloc(9F) - allocate and free non-sequentially accessed memory
-
ddi_iopb_free(9F) - allocate and free non-sequentially accessed memory
-
ddi_io_put16(9F) - write data to the mapped
device register in I/O space
-
ddi_io_put32(9F) - write data to the mapped
device register in I/O space
-
ddi_io_put8(9F) - write data to the mapped
device register in I/O space
-
ddi_io_putb(9F) - write data to the mapped
device register in I/O space
-
ddi_io_putl(9F) - write data to the mapped
device register in I/O space
-
ddi_io_putw(9F) - write data to the mapped
device register in I/O space
-
ddi_io_rep_get16(9F) - read multiple data from the mapped device register in I/O space
-
ddi_io_rep_get32(9F) - read multiple data from the mapped device register in I/O space
-
ddi_io_rep_get8(9F) - read multiple data from the mapped device register in I/O space
-
ddi_io_rep_getb(9F) - read multiple data from the mapped device register in I/O space
-
ddi_io_rep_getl(9F) - read multiple data from the mapped device register in I/O space
-
ddi_io_rep_getw(9F) - read multiple data from the mapped device register in I/O space
-
ddi_io_rep_put16(9F) - write multiple data to the mapped device register in I/O space
-
ddi_io_rep_put32(9F) - write multiple data to the mapped device register in I/O space
-
ddi_io_rep_put8(9F) - write multiple data to the mapped device register in I/O space
-
ddi_io_rep_putb(9F) - write multiple data to the mapped device register in I/O space
-
ddi_io_rep_putl(9F) - write multiple data to the mapped device register in I/O space
-
ddi_io_rep_putw(9F) - write multiple data to the mapped device register in I/O space
-
ddi_log_sysevent(9F) - log system event for drivers
-
ddi_mapdev(9F) - create driver-controlled mapping of device
-
ddi_mapdev_intercept(9F) - control driver notification of user accesses
-
ddi_mapdev_nointercept(9F) - control driver notification of user accesses
-
ddi_mapdev_set_device_acc_attr(9F) - set the device attributes for the mapping
-
ddi_map_regs(9F) - map or unmap registers
-
ddi_mem_alloc(9F) - allocate and free sequentially accessed memory
-
ddi_mem_free(9F) - allocate and free sequentially accessed memory
-
ddi_mem_get16(9F) - read data from mapped
device in the memory space or allocated DMA memory
-
ddi_mem_get32(9F) - read data from mapped
device in the memory space or allocated DMA memory
-
ddi_mem_get64(9F) - read data from mapped
device in the memory space or allocated DMA memory
-
ddi_mem_get8(9F) - read data from mapped
device in the memory space or allocated DMA memory
-
ddi_mem_getb(9F) - read data from mapped
device in the memory space or allocated DMA memory
-
ddi_mem_getl(9F) - read data from mapped
device in the memory space or allocated DMA memory
-
ddi_mem_getll(9F) - read data from mapped
device in the memory space or allocated DMA memory
-
ddi_mem_getw(9F) - read data from mapped
device in the memory space or allocated DMA memory
-
ddi_mem_put16(9F) - write data to mapped
device in the memory space or allocated DMA memory
-
ddi_mem_put32(9F) - write data to mapped
device in the memory space or allocated DMA memory
-
ddi_mem_put64(9F) - write data to mapped
device in the memory space or allocated DMA memory
-
ddi_mem_put8(9F) - write data to mapped
device in the memory space or allocated DMA memory
-
ddi_mem_putb(9F) - write data to mapped
device in the memory space or allocated DMA memory
-
ddi_mem_putl(9F) - write data to mapped
device in the memory space or allocated DMA memory
-
ddi_mem_putll(9F) - write data to mapped
device in the memory space or allocated DMA memory
-
ddi_mem_putw(9F) - write data to mapped
device in the memory space or allocated DMA memory
-
ddi_mem_rep_get16(9F) - read multiple data from mapped device in the memory space or
allocated DMA memory
-
ddi_mem_rep_get32(9F) - read multiple data from mapped device in the memory space or
allocated DMA memory
-
ddi_mem_rep_get64(9F) - read multiple data from mapped device in the memory space or
allocated DMA memory
-
ddi_mem_rep_get8(9F) - read multiple data from mapped device in the memory space or
allocated DMA memory
-
ddi_mem_rep_getb(9F) - read multiple data from mapped device in the memory space or
allocated DMA memory
-
ddi_mem_rep_getl(9F) - read multiple data from mapped device in the memory space or
allocated DMA memory
-
ddi_mem_rep_getll(9F) - read multiple data from mapped device in the memory space or
allocated DMA memory
-
ddi_mem_rep_getw(9F) - read multiple data from mapped device in the memory space or
allocated DMA memory
-
ddi_mem_rep_put16(9F) - write multiple data to mapped device in the memory space or
allocated DMA memory
-
ddi_mem_rep_put32(9F) - write multiple data to mapped device in the memory space or
allocated DMA memory
-
ddi_mem_rep_put64(9F) - write multiple data to mapped device in the memory space or
allocated DMA memory
-
ddi_mem_rep_put8(9F) - write multiple data to mapped device in the memory space or
allocated DMA memory
-
ddi_mem_rep_putb(9F) - write multiple data to mapped device in the memory space or
allocated DMA memory
-
ddi_mem_rep_putl(9F) - write multiple data to mapped device in the memory space or
allocated DMA memory
-
ddi_mem_rep_putll(9F) - write multiple data to mapped device in the memory space or
allocated DMA memory
-
ddi_mem_rep_putw(9F) - write multiple data to mapped device in the memory space or
allocated DMA memory
-
ddi_mmap_get_model(9F) - return data
model type of current thread
-
ddi_model_convert_from(9F) - determine data model type mismatch
-
ddi_node_name(9F) - return the devinfo node name
-
ddi_peek16(9F) - read a value from a location
-
ddi_peek32(9F) - read a value from a location
-
ddi_peek64(9F) - read a value from a location
-
ddi_peek8(9F) - read a value from a location
-
ddi_peek(9F) - read a value from a location
-
ddi_peekc(9F) - read a value from a location
-
ddi_peekd(9F) - read a value from a location
-
ddi_peekl(9F) - read a value from a location
-
ddi_peeks(9F) - read a value from a location
-
ddi_poke16(9F) - write a value to a location
-
ddi_poke32(9F) - write a value to a location
-
ddi_poke64(9F) - write a value to a location
-
ddi_poke8(9F) - write a value to a location
-
ddi_poke(9F) - write a value to a location
-
ddi_pokec(9F) - write a value to a location
-
ddi_poked(9F) - write a value to a location
-
ddi_pokel(9F) - write a value to a location
-
ddi_pokes(9F) - write a value to a location
-
ddi_prop_create(9F) - create, remove, or modify properties for leaf device drivers
-
ddi_prop_exists(9F) - check for the existence of a property
-
ddi_prop_free(9F) - look up property information
-
ddi_prop_get_int64(9F) - lookup integer property
-
ddi_prop_get_int(9F) - lookup integer property
-
ddi_prop_lookup(9F) - look up property information
-
ddi_prop_lookup_byte_array(9F) - look up property information
-
ddi_prop_lookup_int64_array(9F) - look up property information
-
ddi_prop_lookup_int_array(9F) - look up property information
-
ddi_prop_lookup_string(9F) - look up property information
-
ddi_prop_lookup_string_array(9F) - look up property information
-
ddi_prop_modify(9F) - create, remove, or modify properties for leaf device drivers
-
ddi_prop_op(9F) - get property
information for leaf device drivers
-
ddi_prop_remove(9F) - create, remove, or modify properties for leaf device drivers
-
ddi_prop_remove_all(9F) - create, remove, or modify properties for leaf device drivers
-
ddi_prop_undefine(9F) - create, remove, or modify properties for leaf device drivers
-
ddi_prop_update(9F) - update properties
-
ddi_prop_update_byte_array(9F) - update properties
-
ddi_prop_update_int64(9F) - update properties
-
ddi_prop_update_int64_array(9F) - update properties
-
ddi_prop_update_int(9F) - update properties
-
ddi_prop_update_int_array(9F) - update properties
-
ddi_prop_update_string(9F) - update properties
-
ddi_prop_update_string_array(9F) - update properties
-
ddi_ptob(9F) - page size conversions
-
ddi_put16(9F) - write data to the mapped memory address, device register
or allocated DMA memory address
-
ddi_put32(9F) - write data to the mapped memory address, device register
or allocated DMA memory address
-
ddi_put64(9F) - write data to the mapped memory address, device register
or allocated DMA memory address
-
ddi_put8(9F) - write data to the mapped memory address, device register
or allocated DMA memory address
-
ddi_putb(9F) - write data to the mapped memory address, device register
or allocated DMA memory address
-
ddi_putl(9F) - write data to the mapped memory address, device register
or allocated DMA memory address
-
ddi_putll(9F) - write data to the mapped memory address, device register
or allocated DMA memory address
-
ddi_putw(9F) - write data to the mapped memory address, device register
or allocated DMA memory address
-
ddi_regs_map_free(9F) - free a previously mapped register address space
-
ddi_regs_map_setup(9F) - set up a mapping for a register address space
-
ddi_remove_intr(9F) - hardware interrupt handling routines
-
ddi_remove_minor_node(9F) - remove a minor node for this dev_info
-
ddi_remove_softintr(9F) - software interrupt handling routines
-
ddi_removing_power(9F) - check whether DDI_SUSPEND might result in power being removed from a device
-
ddi_rep_get16(9F) - read data from the mapped memory address, device register or allocated DMA memory address
-
ddi_rep_get32(9F) - read data from the mapped memory address, device register or allocated DMA memory address
-
ddi_rep_get64(9F) - read data from the mapped memory address, device register or allocated DMA memory address
-
ddi_rep_get8(9F) - read data from the mapped memory address, device register or allocated DMA memory address
-
ddi_rep_getb(9F) - read data from the mapped memory address, device register or allocated DMA memory address
-
ddi_rep_getl(9F) - read data from the mapped memory address, device register or allocated DMA memory address
-
ddi_rep_getll(9F) - read data from the mapped memory address, device register or allocated DMA memory address
-
ddi_rep_getw(9F) - read data from the mapped memory address, device register or allocated DMA memory address
-
ddi_report_dev(9F) - announce a device
-
ddi_rep_put16(9F) - write data to the mapped memory address, device register or allocated DMA memory address
-
ddi_rep_put32(9F) - write data to the mapped memory address, device register or allocated DMA memory address
-
ddi_rep_put64(9F) - write data to the mapped memory address, device register or allocated DMA memory address
-
ddi_rep_put8(9F) - write data to the mapped memory address, device register or allocated DMA memory address
-
ddi_rep_putb(9F) - write data to the mapped memory address, device register or allocated DMA memory address
-
ddi_rep_putl(9F) - write data to the mapped memory address, device register or allocated DMA memory address
-
ddi_rep_putll(9F) - write data to the mapped memory address, device register or allocated DMA memory address
-
ddi_rep_putw(9F) - write data to the mapped memory address, device register or allocated DMA memory address
-
ddi_root_node(9F) - get the root of
the dev_info tree
-
ddi_segmap(9F) - set up a user mapping using seg_dev
-
ddi_segmap_setup(9F) - set up a user mapping using seg_dev
-
ddi_set_driver_private(9F) - get or set the address of the device's private data
area
-
ddi_slaveonly(9F) - tell if a device is installed in a slave access only location
-
ddi_soft_state(9F) - driver soft state utility routines
-
ddi_soft_state_fini(9F) - driver soft state utility routines
-
ddi_soft_state_free(9F) - driver soft state utility routines
-
ddi_soft_state_init(9F) - driver soft state utility routines
-
ddi_soft_state_zalloc(9F) - driver soft state utility routines
-
ddi_trigger_softintr(9F) - software interrupt handling routines
-
ddi_umem_alloc(9F) - allocate and free page-aligned kernel memory
-
ddi_umem_free(9F) - allocate and free page-aligned kernel memory
-
ddi_umem_iosetup(9F) - Setup I/O requests to application memory
-
ddi_umem_lock(9F) - lock and unlock memory pages
-
ddi_umem_unlock(9F) - lock and unlock memory pages
-
ddi_unmap_regs(9F) - map or unmap registers
-
delay(9F) - delay execution for a specified number of clock ticks
-
devmap_default_access(9F) - default driver memory access function
-
devmap_devmem_setup(9F) - set driver memory mapping parameters
-
devmap_do_ctxmgt(9F) - perform device
context switching on a mapping
-
devmap_load(9F) - control validation of memory address translations
-
devmap_set_ctx_timeout(9F) - set the timeout value for the context management callback
-
devmap_setup(9F) - set up a user mapping to device memory using the devmap framework
-
devmap_umem_setup(9F) - set driver memory mapping parameters
-
devmap_unload(9F) - control validation of memory address translations
-
disksort(9F) - single direction elevator seek sort for buffers
-
drv_getparm(9F) - retrieve kernel state
information
-
drv_hztousec(9F) - convert clock ticks to microseconds
-
drv_priv(9F) - determine driver privilege
-
drv_usectohz(9F) - convert microseconds to clock ticks
-
drv_usecwait(9F) - busy-wait for specified interval
-
dupb(9F) - duplicate a message block descriptor
-
dupmsg(9F) - duplicate a message
-
E
-
F
-
G
-
H
-
I
-
J
-
K
-
L
-
M
-
N
-
O
-
P
-
Q
-
R
-
S
-
T
-
testb(9F) - check for an available buffer
-
timeout(9F) - execute a function after a specified length of time
-
U
-
V
-
W
-
WR(9F) - get pointer to the write queue for this module or driver
-
wr(9F) - get pointer to the write queue for this module or driver
-
X
-
Y
-
Z
|