Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
cyr1x wrote:
3. Create a new (or extend) executable format for drivers, where the identifier is stored. (The hardest solution and harder to make it portable)
no. thats maybe the easy'est. make a section in an elf file with a name like : .driver_or_something_like_that
Yep, that would be portable, a section. PE and ELF support it. Might be an idea to have a backup though (like a string ID'd struct).
It does need enumeration. Also perhaps an EXTENSIBLE Bus implementation (I.E. Bus drivers can be plugged in with their own info slot).
Of course, to be portable you cannot use OO (which would be really nice for a driver if done properly (CDriver->CKybrdDriver->CPS2KybrdDriver))
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]