⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 headers.htm

📁 What is this ``device driver stuff anyway? Here s a very short introduction to the concept.
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<tr>
<td align="left" valign="top">
<strong><tt>
iohandle_to_phys
</tt></strong>
</td>
<td align="left" valign="top">
Converts an I/O handle to a valid system physical address.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
io_zero
</tt></strong>
</td>
<td align="left" valign="top">
Zeros a block of memory in bus address space.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
IS_KSEG_VA
</tt></strong>
</td>
<td align="left" valign="top">
Determines if the specified address is located in the
kernel-unmapped address space.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
IS_SEG0_VA
</tt></strong>
</td>
<td align="left" valign="top">
Determines if the specified address is located in the
user-mapped address space.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
IS_SEG1_VA
</tt></strong>
</td>
<td align="left" valign="top">
Determines if the specified address is located in the
kernel-mapped address space.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
kernel_isrthread
</tt></strong>
</td>
<td align="left" valign="top">
Starts a fixed priority kernel thread dedicated to interrupt service.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
kernel_thread_w_arg
</tt></strong>
</td>
<td align="left" valign="top">
Starts a kernel thread with a calling argument passed in.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
KSEG_TO_PHYS
</tt></strong>
</td>
<td align="left" valign="top">
Converts a kernel-unmapped virtual address to a physical address.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
lock_done
</tt></strong>
</td>
<td align="left" valign="top">
Releases a complex lock.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
lock_init
</tt></strong>
</td>
<td align="left" valign="top">
Initializes a complex lock.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
lock_read
</tt></strong>
</td>
<td align="left" valign="top">
Asserts a complex lock with read-only access.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
lock_terminate
</tt></strong>
</td>
<td align="left" valign="top">
Terminates, using a complex lock.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
lock_try_read
</tt></strong>
</td>
<td align="left" valign="top">
Tries to assert a complex lock with read-only access.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
lock_try_write
</tt></strong>
</td>
<td align="left" valign="top">
Tries to assert a complex lock with write access.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
lock_write
</tt></strong>
</td>
<td align="left" valign="top">
Asserts a complex lock with write access.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
major
</tt></strong>
</td>
<td align="left" valign="top">
Returns the device major number.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
makedev
</tt></strong>
</td>
<td align="left" valign="top">
Returns a <tt>dev_t</tt>.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
MALLOC
</tt></strong>
</td>
<td align="left" valign="top">
Allocates a variable-size section of kernel virtual memory.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
mb
</tt></strong>
</td>
<td align="left" valign="top">
Performs a memory barrier.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
minor
</tt></strong>
</td>
<td align="left" valign="top">
Returns the device minor number.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
minphys
</tt></strong>
</td>
<td align="left" valign="top">
Bounds the data transfer size.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
mpsleep
</tt></strong>
</td>
<td align="left" valign="top">
Blocks (puts to sleep) the current kernel thread.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
ntohl
</tt></strong>
</td>
<td align="left" valign="top">
Converts longword values from network-to-host byte order.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
ntohs
</tt></strong>
</td>
<td align="left" valign="top">
Converts word values from network-to-host byte order.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
ovbcopy
</tt></strong>
</td>
<td align="left" valign="top">
Copies a byte string with a specified limit.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
panic
</tt></strong>
</td>
<td align="left" valign="top">
Causes a system crash.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
physio
</tt></strong>
</td>
<td align="left" valign="top">
Implements raw I/O.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
PHYS_TO_KSEG
</tt></strong>
</td>
<td align="left" valign="top">
Converts a physical address to a kernel-unmapped virtual address.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
pmap_extract
</tt></strong>
</td>
<td align="left" valign="top">
Extracts a physical page address.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
pmap_kernel
</tt></strong>
</td>
<td align="left" valign="top">
Returns the physical map handle for the kernel.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
pmap_set_modify
</tt></strong>
</td>
<td align="left" valign="top">
Sets the modify bits of the specified physical page.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
printf
</tt></strong>
</td>
<td align="left" valign="top">
Prints text to the console and the error logger.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
privileged
</tt></strong>
</td>
<td align="left" valign="top">
Checks for proper privileges.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
psignal
</tt></strong>
</td>
<td align="left" valign="top">
Sends a signal to a process.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
queue_init
</tt></strong>
</td>
<td align="left" valign="top">
Initializes the specified queue.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
READ_BUS_D8
</tt></strong>
</td>
<td align="left" valign="top">
Reads a byte (8 bits) from a device register.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
READ_BUS_D16
</tt></strong>
</td>
<td align="left" valign="top">
Reads a word (16 bits) from a device register.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
READ_BUS_D32
</tt></strong>
</td>
<td align="left" valign="top">
Reads a longword (32 bits) from a device register.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
READ_BUS_D64
</tt></strong>
</td>
<td align="left" valign="top">
Reads a quadword (64 bits) from a device register.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
readdisklabel
</tt></strong>
</td>
<td align="left" valign="top">
Reads a disk label from a device.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
read_io_port
</tt></strong>
</td>
<td align="left" valign="top">
Reads data from a device register.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
register_callback
</tt></strong>
</td>
<td align="left" valign="top">
Registers a callback request (interface).
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
remque
</tt></strong>
</td>
<td align="left" valign="top">
Removes an element from the queue.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
rmalloc
</tt></strong>
</td>
<td align="left" valign="top">
Allocates size units from the given resource map.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
rmfree
</tt></strong>
</td>
<td align="left" valign="top">
Frees space previously allocated into the specified resource map.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
rmget
</tt></strong>
</td>
<td align="left" valign="top">
Allocates size units from the given resource map.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
rminit
</tt></strong>
</td>
<td align="left" valign="top">
Initializes a resource map.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
round_page
</tt></strong>
</td>
<td align="left" valign="top">
Rounds the specified address.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
rt_post_callout
</tt></strong>
</td>
<td align="left" valign="top">
Posts an interface to be called at a lower IPL.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
rt_post_callout_ipl
</tt></strong>
</td>
<td align="left" valign="top">
Posts an interface to be called at a specified IPL.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
select_dequeue
</tt></strong>
</td>
<td align="left" valign="top">
Removes the last kernel thread waiting for an event.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
select_dequeue_all
</tt></strong>
</td>
<td align="left" valign="top">
Removes all kernel threads waiting for an event.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
select_enqueue
</tt></strong>
</td>
<td align="left" valign="top">
Adds the current kernel thread.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
select_wakeup
</tt></strong>
</td>
<td align="left" valign="top">
Wakes up a kernel thread.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
setdisklabel
</tt></strong>
</td>
<td align="left" valign="top">
Sets a disk label.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
simple_lock
</tt></strong>
</td>
<td align="left" valign="top">
Asserts a simple lock.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
simple_lock_init
</tt></strong>
</td>
<td align="left" valign="top">
Initializes a simple lock structure.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
simple_lock_terminate
</tt></strong>
</td>
<td align="left" valign="top">
Terminates, using a simple lock.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
simple_lock_try
</tt></strong>
</td>
<td align="left" valign="top">
Tries to assert a simple lock.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
simple_unlock
</tt></strong>
</td>
<td align="left" valign="top">
Releases a simple lock.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
sleep
</tt></strong>
</td>
<td align="left" valign="top">
Puts a calling process to sleep.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
spl
</tt></strong>
</td>
<td align="left" valign="top">
Sets the processor priority to mask different levels of interrupts.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>
strcmp
</tt></strong>
</td>
<td align="left" valign="top">
Compares two null-terminated character strings.
</td>
</tr>
<tr>
<td align="left" valign="top">
<strong><tt>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -