From owner-freebsd-questions Thu Jul 12 15:32:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-73.dsl.lsan03.pacbell.net [63.207.60.73]) by hub.freebsd.org (Postfix) with ESMTP id 8425D37B403 for ; Thu, 12 Jul 2001 15:32:30 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 21A6E66DD9; Thu, 12 Jul 2001 15:32:28 -0700 (PDT) Date: Thu, 12 Jul 2001 15:32:28 -0700 From: Kris Kennaway To: Yonny Cardenas Cc: questions@FreeBSD.ORG Subject: Re: Some questions about kernel programming Message-ID: <20010712153228.E20322@xor.obsecurity.org> References: <3B4E06F1.2030808@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="jKBxcB1XkHIR0Eqt" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B4E06F1.2030808@yahoo.com>; from ycardena@yahoo.com on Thu, Jul 12, 2001 at 03:22:09PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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