From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <499465D0.7000800@domain.hid> Date: Thu, 12 Feb 2009 19:09:20 +0100 From: Philippe Gerum MIME-Version: 1.0 References: <6a782b880902120633k48de76a0y2fa005bc852d74fb@domain.hid> In-Reply-To: <6a782b880902120633k48de76a0y2fa005bc852d74fb@domain.hid> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai-help] rt_task_add_hook() doesnt work Reply-To: rpm@xenomai.org List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thiago Lima Cc: xenomai@xenomai.org Thiago Lima wrote: > Hi all ! >=20 > 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 servic= e. > So, i have created a linux kernel module in which i call this service i= n > init_module() function. After that, initialize the module and starts a > RT Task. >=20 > But, the hook function isnt called. Does anybody have already faced thi= s > problem ? > Start hooks are not fired for userland tasks. >=20 > --------- kernel module simple code ----- >=20 > void hook(void *cookie) { > printk(KERN_INFO "hook().\n"); > } >=20 > int init_module (void) { > rt_task_add_hook(T_HOOK_START, &hook); > return 0; > } >=20 > --------- kernel module simple code ----- >=20 >=20 > --=20 > Thiago Lima Silva > Graduando - Ci=EAncia da Computa=E7=E3o UFBA > Registered Linux user #466887 >=20 >=20 > -----------------------------------------------------------------------= - >=20 > _______________________________________________ > Xenomai-help mailing list > Xenomai-help@domain.hid > https://mail.gna.org/listinfo/xenomai-help --=20 Philippe.