More info about QNX RTP devctl()

Where I can to see more info (or annotation) about devctl() commands for
devc-con?
When I’m looking files /usr/include/sys/dcmd_xxx.h, I think that:

  1. dcmd* not complete
  2. poor commented.

I saw fine sources that used devctl(), but where info? Or they knows
“backdoors” ?

ó Õ×ÁÖÅÎÉÅÍ,
îÉËÏÌÁÊ òÙÂÁËÏ×,
ÇÒÕÐÐÁ ÔÅÈÎÉÞÅÓËÏÊ ÐÏÄÄÅÒÖËÉ
e-mail: N.Rybakov@swd.ru

SWD Real-Time Systems Ltd.
196135, óÁÎËÔ-ðÅÔÅÒÂÕÒÇ, ÐÒ. àÒÉÑ çÁÇÁÒÉÎÁ 23
ÔÅÌ.: (812) 443-0260
ÆÁËÓ: (812) 443-0497
web: http://www.swd.ru
e-mail: info@swd.ru


çÒÕÐÐÁ ÔÅÈÎÉÞÅÓËÏÊ ÐÏÄÄÅÒÖËÉ ÐÏÌØÚÏ×ÁÔÅÌÅÊ QNX
ÄÏÓÔÕÐÎÁ ÐÏ ÁÄÒÅÓÕ: support.qnx@swd.ru

This is not going to get you far Nick. I doubt anyone will come up with
detailed description of all devctls. Most of time header files are quite
self-explanatory. You can guess what a particular DCMD_ is by type of
argument it takes. Use some imagination. When there is something totally
obscure just ask a specific question.

Most most people in this newsgroup it should take some creative guessing
to read your signatire as well :wink:

Cheers,

  • igor

Nick wrote:

Where I can to see more info (or annotation) about devctl() commands for
devc-con?
When I’m looking files /usr/include/sys/dcmd_xxx.h, I think that:

  1. dcmd* not complete
  2. poor commented.

I saw fine sources that used devctl(), but where info? Or they knows
“backdoors” ?

ó Õ×ÁÖÅÎÉÅÍ,
îÉËÏÌÁÊ òÙÂÁËÏ×,
ÇÒÕÐÐÁ ÔÅÈÎÉÞÅÓËÏÊ ÐÏÄÄÅÒÖËÉ
e-mail: > N.Rybakov@swd.ru

SWD Real-Time Systems Ltd.
196135, óÁÎËÔ-ðÅÔÅÒÂÕÒÇ, ÐÒ. àÒÉÑ çÁÇÁÒÉÎÁ 23
ÔÅÌ.: (812) 443-0260
ÆÁËÓ: (812) 443-0497
web: > http://www.swd.ru
e-mail: > info@swd.ru


çÒÕÐÐÁ ÔÅÈÎÉÞÅÓËÏÊ ÐÏÄÄÅÒÖËÉ ÐÏÌØÚÏ×ÁÔÅÌÅÊ QNX
ÄÏÓÔÕÐÎÁ ÐÏ ÁÄÒÅÓÕ: > support.qnx@swd.ru

“Igor Kovalenko” <Igor.Kovalenko@motorola.com> wrote in message
news:3ABF9117.402298DD@motorola.com

This is not going to get you far Nick. I doubt anyone will come up with
detailed description of all devctls. Most of time header files are quite
self-explanatory. You can guess what a particular DCMD_ is by type of
argument it takes. Use some imagination. When there is something totally
obscure just ask a specific question.

Most most people in this newsgroup it should take some creative guessing
to read your signatire as well > :wink:

Cheers,

  • igor

Nick wrote:

Where I can to see more info (or annotation) about devctl() commands for
devc-con?
When I’m looking files /usr/include/sys/dcmd_xxx.h, I think that:

  1. dcmd* not complete
  2. poor commented.

I saw fine sources that used devctl(), but where info? Or they knows
“backdoors” ?

Ok, Igor! You’re right! It’s my miss.

Imagination?
If DCMD’s are not declared in includes, I suppose, that particular DCMD_ not
supported by driver or hidden.
A specific question about QNX6 console driver. I’m interesting something
like cfont utility on QNX 4.X.

Does devc-con supports some ioctl’s like
(code fragments are from vidcontrol FreeBSD)
/* Load font /
io = PIO_FONT8x16;
if (ioctl(0, io, fontmap) < 0)
warn(“can’t load font”);
/
Load screen map /
if (ioctl(0, PIO_SCRNMAP, &scrnmap) < 0)
warn(“can’t load screenmap”);
/
Show adaper info */
struct video_adapter_info ad;
if (ioctl(0, CONS_ADPINFO, &ad))
warn(“failed to obtain adapter information”);

Is it pretty?

Nick

Nick wrote:

Ok, Igor! You’re right! It’s my miss.
Imagination?
If DCMD’s are not declared in includes, I suppose, that particular DCMD_ not
supported by driver or hidden.

Resource managers/drivers are compiled mostly using they same header
files as we use for our programs, so if DCMD is not defined then it
probably does not exist. There are some non-public headers but they are
usually for internal debugging. The devctl interface is designed
specifically to provide public interface to resmgr features, there’s
very little sense to hide it.

A specific question about QNX6 console driver. I’m interesting something
like cfont utility on QNX 4.X.

Does devc-con supports some ioctl’s like
(code fragments are from vidcontrol FreeBSD)
/* Load font /
io = PIO_FONT8x16;
if (ioctl(0, io, fontmap) < 0)
warn(“can’t load font”);
/
Load screen map /
if (ioctl(0, PIO_SCRNMAP, &scrnmap) < 0)
warn(“can’t load screenmap”);
/
Show adaper info */
struct video_adapter_info ad;
if (ioctl(0, CONS_ADPINFO, &ad))
warn(“failed to obtain adapter information”);

Is it pretty?

Not sure if it is pretty, but surely not supported.

  • igor