Skip to content

Instantly share code, notes, and snippets.

@Embedded-linux
Created January 3, 2014 07:00
Show Gist options
  • Select an option

  • Save Embedded-linux/8233977 to your computer and use it in GitHub Desktop.

Select an option

Save Embedded-linux/8233977 to your computer and use it in GitHub Desktop.
kernel supported driver functions
The OS functions supported at kernel level are, of course, only those functions programmed inside it:
kmalloc(), kfree(): memory management
cli(), sti(): enable/disable interrupts
add_timer(), init_timer(), del_timer(): timing management
request_irq(), free_irq(): irq management
inb_p(), outb_p(): port management
memcpy_*fs(): data management
printk(): input/output
register_*dev(), unregister_*dev(): device management
*sleep_on(), wake_up*(): process management
**********************************************************************
so these are maxium functions supported by kernel used in probe function of driver.
we will write sample program for each function to understand its usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment