Why use `thread' as an argument of Syscalls?
- From: MingyanGuo <guomingyan@xxxxxxxxx>
- Date: Mon, 5 Jun 2006 15:44:58 +0800
Hi all,
I find that FreeBSD Syscalls always have an `thread'
argument, for example, preadv(/sys/kern/sys_generic.c)
has a `td' argument. But some Syscalls may rarely use
this argument, and thay ( and functions they invoke) can
get the `thread' who make the Syscall _easily_ via
`curthread' macro if needed. So the `thread' argument
seems not needed.
Can anybody tell me why use `thread' as an argument
of Syscalls?
Thanks.
Regards,
--
Three passions, simple but overwhelmingly strong, have governed my life:
the longing for love, the search for knowledge, and unbearable pity for
the suffering of mankind.
---------Bertrand Russell
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Why use `thread' as an argument of Syscalls?
- From: Daniel Eischen
- Re: Why use `thread' as an argument of Syscalls?
- Prev by Date: Re: freebsd support the MPC8247 CPU?
- Next by Date: Re: Why use `thread' as an argument of Syscalls?
- Previous by thread: freebsd support the MPC8247 CPU?
- Next by thread: Re: Why use `thread' as an argument of Syscalls?
- Index(es):