Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I am new to this forum and newbie to device drivers. I need to port a device driver code from Solaris to Linux. The Solaris code uses DDI (device ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Posts
    3

    Porting from Solaris to Linux


    Hi,
    I am new to this forum and newbie to device drivers. I need to port a device driver code from Solaris to Linux. The Solaris code uses DDI (device driver Interface) system calls (for eg ddi_soft_state_init, ddi_get_instance) which are specific to Solaris. I would like to know whether there are any corresponding system calls in Linux so that I can replace the DDI system calls directly or should I need to re-write the driver code newly again.

    Thanks in advance,
    Ganesan.

  2. #2
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    are you using a SPARC based SUN system?
    Operating System: GNU Emacs

  3. #3
    Just Joined!
    Join Date
    Jul 2005
    Posts
    3
    Yes, currently the code is available for Solaris (SPARC). I need to port it to Linux.

  4. #4
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Well, I for once haven't ever used Sun's DDI, so I don't really know what either ddi_soft_state_init or ddi_get_instance actually do. Because of that, it's a bit hard to find a Linux kernel counterpart. =)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •