[prev in list] [next in list] [prev in thread] [next in thread]
List: hurd-help
Subject: hello-world GNU Mach driver
From: Shakthi Kannan <shakstux () yahoo ! com>
Date: 2005-08-25 8:02:17
Message-ID: 20050825080217.8927.qmail () web32212 ! mail ! mud ! yahoo ! com
[Download RAW message or body]
Greetings!
I am trying to work on GNUmach 1.3 drivers (not using
oskit).
I don't want to use the linux drivers with glue
interface as I want to build my own subsystem in the
kernel with driver support, atleast want to learn how
to do that.
I have written a small C file with two functions, and
added it to kern/ directory in gnumach/, and modified
the Makefile.in so that the code compiles with the
kernel. I did an objdump on the created gnumach image
and found the disassembly of the two functions :).
1. I can simply call the above two functions from one
of the kern/ C files to test if it gets called. When
it comes to a device driver interface, and assuming
the above are two driver functions, where do I
register this driver such that the kernel will call
this particular function?
2. How do I write a user-space function that can open
this particular driver in gnumach to demonstrate the
control flow between user-space and kernel-space and
vice-versa. I am totally blank on this part :(
I have seen include/device/device.defs having the
device driver interface. But, I have no clue as to how
to go about it.
I'd appreciate any simple hello-world driver example
to get me started on this.
Looking forward to some code examples,
K Shakthi
------------------------------------------------------------
Shakthi Kannan, MS
Software Engineer, Specsoft (Hexaware Technologies)
[E]: shaks@shakthimaan.com [M]: (91) 98407-87007
[W]: http://www.shakthimaan.com [L]: Chennai, India
------------------------------------------------------------
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Help-hurd mailing list
Help-hurd@gnu.org
http://lists.gnu.org/mailman/listinfo/help-hurd
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic