OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 12:32 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Safer/better equivalent to ioctl?
PostPosted: Tue Mar 23, 2021 11:43 am 
Offline
Member
Member
User avatar

Joined: Mon Jun 05, 2006 11:00 pm
Posts: 2293
Location: USA (and Australia)
rdos wrote:
If a function is important to support, you provide API functions for it, and if it simply is something fancy a hw manufacturer wants to push, then they can either configure it with environmental variables or do some automatic configuration. Of course, unless the OS team thinks it is something useful that more than one device supports, and then provide a new API for it.


I don't know a solution to every manufacturer inventing their own extensions and somehow keeping everything compatible. Unless there's an industry consortium from the very start that agrees on a common interface, I think at some point, as the OS developer, you see both NVidia and AMD have very similar extension functions, so you create a generic version and add it to GraphicsInterface 1.3 and hope the driver developers implement the new graphics interface.

I mentioned earlier that I'm using my own IDL to specify and generate stubs for communicating with drivers and microservices. If "perception.devices.StorageDevice" doesn't provide a "Rewind Tape" function, IBM could make an "ibm.LtoDevice" interface in a library, the IBM tape driver could implement both "perception.devices.StorageDevice" and "ibm.LtoDevice", and any program that cares about rewinding tapes in an IBM tape drive could depend on IBM's library and get the generated C++ interface for talking to "ibm.LtoDevice".

_________________
My OS is Perception.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 95 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group