Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jul 2001 15:32:28 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Yonny Cardenas <ycardena@yahoo.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Some questions about kernel programming
Message-ID:  <20010712153228.E20322@xor.obsecurity.org>
In-Reply-To: <3B4E06F1.2030808@yahoo.com>; from ycardena@yahoo.com on Thu, Jul 12, 2001 at 03:22:09PM -0500
References:  <3B4E06F1.2030808@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--jKBxcB1XkHIR0Eqt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 12, 2001 at 03:22:09PM -0500, Yonny Cardenas wrote:
> Dear Friends
>=20
> I have some questions about kernel programming:
>=20
> 1. Why I can call some system calls functions into the kernel but
>   another not?, for example: I can call printf(), but I can't call
>   socket().

system calls are functions exposed by the kernel to userland.
printf() is not a syscall, it's a function implemented within the
kernel.  syscalls aren't available as functions within the kernel.
You generally have to work harder to achieve the same functionality
within the kernel.  I suggest reading the _Design and Implementation
of the 4.4BSD Operating System_ if you're trying to do something here;
chances are you'll need a lot more information than you currently have
available, most of which should be in that book.

This question might be more appropriate for the -hackers mailing list.

Kris

--jKBxcB1XkHIR0Eqt
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE7TiV7Wry0BWjoQKURAo8lAKDwLsgXzrAYAVLL7Mor0XufFPvajQCeKpPb
/bt2ihZ+DvMqpsg2CHOrwhk=
=K4fh
-----END PGP SIGNATURE-----

--jKBxcB1XkHIR0Eqt--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010712153228.E20322>