The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How do i find if Solaris is 32 or 64 bit. 0ktalmagik UNIX for Dummies Questions & Answers 1 05-01-2006 02:53 PM
where i can find Solaris 9 installetion ? umen SUN Solaris 1 08-23-2005 03:09 AM
How to find RAM size in my Solaris 8 malikabid UNIX for Dummies Questions & Answers 3 02-11-2005 09:01 PM
Find command in Solaris srolen UNIX for Dummies Questions & Answers 3 07-10-2001 06:55 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-27-2007
Registered User
 

Join Date: Feb 2007
Location: Berlin / Sofia
Posts: 10
Stumble this Post!
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:
Code:
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.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-27-2007
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,425
Stumble this Post!
Try: The Linux Kernel Module Programming Guide
Reply With Quote
  #3 (permalink)  
Old 06-27-2007
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,428
Stumble this Post!
O'Reilly has a book "Linux Device Drivers". A free online version of the earlier edition is available. It should help.
Reply With Quote
  #4 (permalink)  
Old 06-28-2007
Registered User
 

Join Date: Feb 2007
Location: Berlin / Sofia
Posts: 10
Stumble this Post!
Thanks for the responses, you gave me good references

Meanwhile I found a lot of what I'm looking for under include/linux
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0