From: Philippe Gerum <rpm@xenomai.org>
To: Thiago Lima <thiagolims@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] rt_task_add_hook() doesnt work
Date: Thu, 12 Feb 2009 19:09:20 +0100 [thread overview]
Message-ID: <499465D0.7000800@domain.hid> (raw)
In-Reply-To: <6a782b880902120633k48de76a0y2fa005bc852d74fb@domain.hid>
Thiago Lima wrote:
> Hi all !
>
> I need to do some things when a new rt task starts. So that, i need to
> use the 'rt_task_add_hook()', defined in xenomai task management service.
> So, i have created a linux kernel module in which i call this service in
> init_module() function. After that, initialize the module and starts a
> RT Task.
>
> But, the hook function isnt called. Does anybody have already faced this
> problem ?
>
Start hooks are not fired for userland tasks.
>
> --------- kernel module simple code -----
>
> void hook(void *cookie) {
> printk(KERN_INFO "hook().\n");
> }
>
> int init_module (void) {
> rt_task_add_hook(T_HOOK_START, &hook);
> return 0;
> }
>
> --------- kernel module simple code -----
>
>
> --
> Thiago Lima Silva
> Graduando - Ciência da Computação UFBA
> Registered Linux user #466887
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
next prev parent reply other threads:[~2009-02-12 18:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-12 14:33 [Xenomai-help] rt_task_add_hook() doesnt work Thiago Lima
2009-02-12 18:09 ` Philippe Gerum [this message]
2009-02-12 21:17 ` Philippe Gerum
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=499465D0.7000800@domain.hid \
--to=rpm@xenomai.org \
--cc=thiagolims@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.