QNX4 --------------------------------------------------------------- () QNX Software Systems Ltd., 1996 : QNX Software Systems Ltd. : SWD Software Ltd. WWW: http://www.swd.ru/qnx/support/literature/sysarch/ E-mail: books.qnx@swd.ru Date: 04 Mar 2002 ---------------------------------------------------------------
QNX. " QNX/Neutrino 2". , (400 .) |
QNX , .
QNX. , , , . QNX, .
QNX, QNX
:
:
. - , , .. - , .
, . , , . , .
QNX . : , .
QNX - . , . QNX , . - , .
QNX , :
QNX , . , , , "" - .
QNX .
- "" . , , , !
QNX - . -, , QNX . -, :
, . .
, , , QNX . QNX :
- - , .
QNX . QNX, , !
, . , , , - .
, . ?
, ( QNX ) , . , , . , .
. ! , QNX .
- , .
, QNX . , QNX , .
, :
, , , .
(Interprocess communication, IPC) , .
QNX , IPC, , .
QNX , IPC. , QNX.
QNX - , . - , .
, . , , " ", , . , , ().
, .. . QNX .
. QNX .
. , , - . , , , !
, , ( , ). , . QNX IPC .
QNX . QNX , -. , . , QNX , .. .
/, , , , , . QNX "", , QNX (, ), , .
QNX . , , .
QNX . , . |
QNX , . , QNX .
QNX, . , IPC , . " ", - , - !
QNX, , , . , , QNX, , , .
QNX.
:
QNX :
QNX.
QNX : , .
QNX - , . QNX . .
:
: | : |
---|---|
Send() | |
Receive() | |
Reply() | , |
, .. , , .. .
, , Send(), Receive() Reply() . QNX - , (, , , - pipe), .
A B, ,
, , , A B, Send(), Receive() Reply() :
, B Receive() , , RECEIVE- . - REPLY-.
, .
. A Send(), , . , B A , A . , B Receive(), , .
QNX " " . |
, .. , - .
:
: | : |
---|---|
Send(), - | SEND- |
Send(), -, | REPLY- |
Receive(), | RECEIVE- |
.
" ". |
Send(), Receive() Reply(). A B.
, . Send():
Send( pid, smsg, rmsg, smsg_len, rmsg_len );
Send() :
, smsg_len rmsg_len - , .
Receive(), B , A:
pid = Receive( 0, msg, msg_len )
Receive() :
smsg_len Send() msg_len Receive() , , , .
A, B A, Reply():
Reply( pid, reply, reply_len );
Reply() :
reply_len Reply() rmsg_len Send() , .
, , - , , , RECEIVE- - . send- : - , , .
, , , : reply- , Reply(). -"" , , . , "", . , . - , , .
, , :
, Send() , . Send() , . . - , , Reply(), , , .
A B ( ). C, D, E .
QNX :
, , Receive() . , .
, , , RECEIVE- . , , , . Creceive(), , .
Creceive(), .. . |
, .
, / , . ( 0 64 ). / , Readmsg() . , Readmsg() . , Writemsg() , , , , / .
. . , , . , , . / QNX, Dev Fsys, .
:
qqq0 mx . .
QNX 16- , . , , . QNX :
: | : |
---|---|
0x0000 - 0x00FF | |
0x0100 - 0x01FF | / ( /) |
0x0200 - 0x02FF | |
0x0300 - 0x03FF | |
0x0400 - 0x04FF | |
0x0500 - 0x0FFF | QNX |
- , , . , . , .
, , .
:
qnx_proxy_attach(). , , Trigger() , . Trigger() .
"" - . 65535 .
- 3 , 3 "" .
, .
QNX , POSIX, , , UNIX-, , QNX.
, , . .
: | : |
---|---|
: kill slay | |
: kill() raise() |
, , :
, , , , . . , . , .
: | : |
---|---|
SIGABRT | , abort(). |
SIGALRM | -, alarm(). |
SIGBUS | ( QNX ). , . |
SIGCHLD | . - . |
SIGCONT | HELD, . - , HELD. |
SIGDEV | , . |
SIGFPE | ( ), , , . , . |
SIGHUP | , , . |
SIGILL | . , . |
SIGINT | "" (Break) |
SIGKILL | - . "" . qnx_pflags(). . |
SIGPIPE | , . |
SIGPWR | Ctrl-Alt-Shift-Del shutdown. |
SIGQUIT | . |
SIGSEGV | . , . |
SIGSTOP |