From: Jan Kiszka <jan.kiszka@domain.hid>
To: Jeroen Van den Keybus <jeroen.vandenkeybus@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Accessing the dev_private field of the RTDM driver context
Date: Wed, 22 Feb 2006 14:42:15 +0100 [thread overview]
Message-ID: <43FC6A37.6030406@domain.hid> (raw)
In-Reply-To: <fd6a47a90602220529l42118430u@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 772 bytes --]
Jeroen Van den Keybus wrote:
> The dev_private data field of an rtdm_dev_context is defined as char[0]. How
> do I access such a field properly (given the fact that I defined a nonzero
> context_size in the rtdm_device structure during driver registration) ?
>
> E.g. trying to do:
>
> (struct my_struct *)context->dev_private = NULL;
>
> results in:
>
> error: incompatible types in assignment
>
> I _am_ able to compare though:
>
> if ((struct my_struct *)context->dev_private == NULL)
> ...
>
> seems to compile fine.
>
>
> Jeroen.
>
context->dev_private does not contain an address, it IS the start
address of your private date. It's size is specified during device
registration. See existing drivers for usage examples.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2006-02-22 13:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-22 13:29 [Xenomai-help] Accessing the dev_private field of the RTDM driver context Jeroen Van den Keybus
2006-02-22 13:42 ` Jan Kiszka [this message]
2006-02-22 14:29 ` Jeroen Van den Keybus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43FC6A37.6030406@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=jeroen.vandenkeybus@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.