Cannot find task id.

Joel Sherrill joel.sherrill at OARcorp.com
Wed Oct 23 13:38:16 UTC 2002



Niclas Johansson wrote:
> 
> Yes on both.
> 
> This is the call:
> task_status = rtems_task_ident(rtems_build_name('L','O','G','1'),
>                                 RTEMS_SEARCH_ALL_NODES, &taskid);
> 
> I find it strange that it works fine before I start the task but not
> after.

Sounds strange to me also.  WOuld you mind putting together a 
small yet complete test program so I can run it and see what's
happening.  It sounds like it is only 4 calls -- create, ident,
start, and a failing ident -- so it shouldn't be that difficult
to get a cut-down.

Thanks.

--joel

> /Nicke
> 
> On Wed, 23 Oct 2002 Per-Olof.Wallin at esa.int wrote:
> >
> > Per-Olof Wallin at ESA
> > 10/23/2002 02:08 PM
> >
> > Are you using rtems_task_ident and if you are, did you use rtems_build_name
> > to create the name?
> >
> > /Per-Olof
> >
> >
> >
> >
> > |--------+----------------------->
> > |        |          Niclas       |
> > |        |          Johansson    |
> > |        |          <nicjoh-7 at sm.|
> > |        |          luth.se>     |
> > |        |                       |
> > |        |          02-10-23     |
> > |        |          13:00        |
> > |        |                       |
> > |--------+----------------------->
> >   >-------------------------------------------------------------------------|
> >   |                                                                         |
> >   |       To:     rtems-users at oarcorp.com                                   |
> >   |       cc:     (bcc: Per-Olof Wallin/estec/ESA)                          |
> >   |       Subject:     Cannot find task id.                                 |
> >   >-------------------------------------------------------------------------|
> >
> >
> >
> >
> >
> > I am trying to find the id of a task from another task using
> > rtems_task_ident. When the task is created it works fine and I get the
> > id of the task, but when the task is started I get invalid
> > name as error response. Anybody have any ideas? Getting the id seems to me
> > like a straightforward operation but I cannot figure out what's wrong.
> >
> > /Nicke
> >
> >
> >
> >
> >
> >

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the users mailing list