This function is called by a driver to set up for probing IRQs. The function attaches a handler on each available IRQ, waits for waittime ticks, and returns a bit mask of IRQs available IRQs. The driver should then force the device to generate an interrupt.
This function is called by a driver after it has programmed the device to generate an interrupt. The function waits waittime ticks, and returns the IRQ number on which the device interrupted. If no interrupt occurred, 0 is returned.
This function registers a driver for the major number major. When an access is made to a device with the specified major number, the kernel accesses the driver through the operations vector fops. The function returns 0 on success, non-zero otherwise.
This function removes the association between a driver and the major number major, previously established by register_blkdev. The function returns 0 on success, non-zero otherwise.
This function is called by a driver to allocate a buffer size bytes in length and associate it with device dev, and block number block.
This function frees the buffer bh, previously allocated by getblk.
This function allocates a buffer size bytes in length, and fills it with data from device dev, starting at block number block.
This function is the default implementation of file write. It is used by most of the Linux block drivers. The function writes count bytes of data to the device specified by i_rdev field of inode, starting at byte offset specified by f_pos of file, from the buffer buf. The function returns 0 for success, non-zero otherwise.
This function is the default implementation of file read. It is used by most of the Linux block drivers. The function reads count bytes of data from the device specified by i_rdev field of inode, starting at byte offset specified by f_pos field of file, into the buffer buf. The function returns 0 for success, non-zero otherwise.
This function checks if media has been removed or changed in a removable medium device specified by dev. It does so by invoking the check_media_change function in the driver's file operations vector. If a change has occurred, it calls the driver's revalidate function to validate the new media. The function returns 0 if no medium change has occurred, non-zero otherwise.
This function allocates the DMA request line drq for the calling driver. It returns 0 on success, non-zero otherwise.
This function frees the DMA request line drq previously allocated by request_dma.
This function masks the interrupt request line irq at the interrupt controller.
This function unmasks the interrupt request line irq at the interrupt controller.
This function allocates the interrupt request line irq, and attach the interrupt handler handler to it. It returns 0 on success, non-zero otherwise.
This function frees the interrupt request line irq, previously allocated by request_irq.
This function allocates size bytes memory. The priority argument is a set of bitfields defined as follows:
This function frees the memory p previously allocated by kmalloc.
This function allocates size bytes of memory in kernel virtual space that need not have underlying contiguous physical memory.
Check if the I/O address space region starting at port and size bytes in length, is available for use. Returns 0 if region is free, non-zero otherwise.
Allocate the I/O address space region starting at port and size bytes in length. It is the caller's responsibility to make sure the region is free by calling check_region, prior to calling this routine.
Free the I/O address space region starting at port and size bytes in length, previously allocated by request_region.
Add the wait element wait to the wait queue q.
Remove the wait element wait from the wait queue q.
Perform a down operation on the semaphore sem. The caller blocks if the value of the semaphore is less than or equal to 0.
Add the caller to the wait queue q, and block it. If interruptible flag is non-zero, the caller can be woken up from its sleep by a signal.
Wake up anyone waiting on the wait queue q.
Put the caller to sleep, waiting on the buffer bh. Called by drivers to wait for I/O completion on the buffer.
Call the scheduler to pick the next task to run.
Schedule a time out. The length of the time out and function to be called on timer expiry are specified in timer.
Cancel the time out timer.