bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: current_set symbol in GNU Mach


From: Richard Braun
Subject: Re: current_set symbol in GNU Mach
Date: Tue, 22 Aug 2006 09:10:06 +0200
User-agent: Mutt/1.5.9i

On Fri, Aug 18, 2006 at 05:07:16PM +0200, Samuel Thibault wrote:
> Hi,
> 
> Richard Braun, le Mon 14 Aug 2006 22:55:15 +0200, a écrit :
> > extern struct task_struct *current_set[NR_CPUS];
> > #define current (0+current_set[smp_processor_id()])     /* Current on this 
> > processor */
> > The symbol named current_set doesn't exist.
> 
> It does on my gnumach: 
> ./linux/src/kernel/sched.c:struct task_struct *current_set[NR_CPUS];
> 
> What fields of "current" does the driver use?
> 
> (On Linux, "current" is just a pointer to the current task attributes).

The linux/ directory is divided in two specific directories which are dev/
and src/. If a file is present in dev/, the Makefile uses it prior to the
one in src/. There is no current_set symbol in linux/dev/kernel/sched.c.
I've only seen current->state in the driver I'm testing with. There could
be other fields as other drivers are added.

I've created a dummy current_set symbol, and code using it just has no
effect.

-- 
Richard Braun

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]