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

_______________________________________________
Bug-hurd mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-hurd

Reply via email to