“ycao” <ycao@mail.ipp.ac.cn> wrote in message
news:9eja6r$nar$1@inn.qnx.com…
Thank you, mario!
You are welcome:
I also have many questions!
That’s what this newsgroup is for 
A driver under QNX is just like any other program. Check out
mmap_* (), in*() out8() and ThreadCtrl()
I search these functions from online help,but i didn’t find them except
the
mmap().
Unclick the “match whole works” in the help viewer and type mmap_.
Also look at shm_open.
Even the linux has the function
inb()\inw()\inl(),outb()\outw()\outl(),readb\readw()\readl(),writeb()\writew
()\writel()
It’s all there but under different name, in8() , in8s(), in16(), in16s() …
…
2.What is the diffrence beteween the debugging a QNX driver and an
ordinary QNX programm?
NONE!!!
I learn that in linux a drive can be written in “user space” or in "
kernel
space".Is Qnx the same?
No it’s not. You got to let go of some of Linux concept 
And if you could write a drive in a “kernel space” ,how will you debug it
?
You can’t, there is no such thing a kernel space. A “driver” is just like
any other driver, aside from being required to be launch by user root, if
it has to access hardware directly.
Caoyuan