Where can I find Linux functions corresponding to the Solaris DDI?

Hello,

I'm not sure whether this thread is in the right subforum, if it isn't please excuse me.

So, here's my question - right now I'm trying to port a Solaris device driver for a custom piece of hardware to Linux (2.6.15), and I'm having some troubles finding the proper corresponding functions to the Solaris Device Driver Interface (DDI) on Linux. These are functions like:

cmn_err
copyin
cv_init
ddi_add_intr
ddi_copyin
ddi_create_minor_node
ddi_get_instance
ddi_get_name
ddi_get_soft_state
ddi_getprop
ddi_map_regs
ddi_peek8
ddi_prop_op
ddi_remove_minor_node
ddi_report_dev
ddi_set_driver_private
ddi_soft_state_init
getminor
mod_install
mod_remove
mutex_exit
mutex_init
nochpoll
nodev
nulldev
proc_ref

and so on.
I found good descriptions of those on docs.sun.com, but I'm having troubles finding a convenient list of corresponding Linux functions. Maybe someone can give me a guidance, a link or just an advice.

Thanks in advance.

Try: The Linux Kernel Module Programming Guide

O'Reilly has a book "Linux Device Drivers". A free online version of the earlier edition is available. It should help.

Thanks for the responses, you gave me good references

Meanwhile I found a lot of what I'm looking for under include/linux :slight_smile: