Date: Mon, 5 Jun 2006 15:44:58 +0800 From: MingyanGuo <guomingyan@gmail.com> To: freebsd-arch@freebsd.org Cc: delphij@gmail.com Subject: Why use `thread' as an argument of Syscalls? Message-ID: <1fa17f810606050044k2847e4a2i150eb934ed84006f@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1fa17f810606050044k2847e4a2i150eb934ed84006f>
