Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2005 22:52:26 +0800
From:      Xin LI <delphij@frontfree.net>
To:        - Felix - <Felix.Schalck@gmx.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Kernel mode programming
Message-ID:  <1106059946.896.5.camel@spirit>
In-Reply-To: <002201c4fd4a$c5a81230$0700a8c0@felix>
References:  <002201c4fd4a$c5a81230$0700a8c0@felix>

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

--=-JaWoyVnXvxLlDmOdxopF
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Of course it's possible to take everything into kernel, but that might
not a good idea since you can also easily crash the whole system and
pose serious security issues because kernel trust everything that is
considered to be a part of it.

FreeBSD has provided many interfaces that may help out your problem.
You may want to take a look at kqueue(2), sendfile(2), accept_filter(9),
etc., and consider switching your application model from one to another.
Another thing you may have interest is the ktrace/kdump mechanism, as
well as ktr that can reveal what exactly the problem is.
Please don't hesitate to submit your patch / suggestion to PR system or
appropriate maillist if you think there is some *REAL* problem, as that
will help the development.=20

=E5=9C=A8 2005-01-18=E4=BA=8C=E7=9A=84 11:45 +0100=EF=BC=8C- Felix -=E5=86=
=99=E9=81=93=EF=BC=9A
> Hi everyone,
>=20
> Doing lot of syscalls interrupts in a soft seems to take quite a long tim=
e, and seriously slow performances. As far as you can't reduce the syscall =
amount, is there any way to run apps in kernel mode, in order to call sysfo=
nctions directly ? Perhaps by re-writing softs in kernel modules ?=20
>=20
> thanks for your time.

Cheers,
--=20
Xin LI <delphij delphij net>  http://www.delphij.net/

--=-JaWoyVnXvxLlDmOdxopF
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: 
	=?UTF-8?Q?=E8=BF=99=E6=98=AF=E4=BF=A1=E4=BB=B6=E7=9A=84=E6=95=B0?=
	=?UTF-8?Q?=E5=AD=97=E7=AD=BE=E5=90=8D=E9=83=A8?= =?UTF-8?Q?=E5=88=86?=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQBB7SKq/cVsHxFZiIoRAlIMAJ9LlZ8LLskPpUHRPkV8Yj560gXlhwCfU53H
TurJ86gJwa2apPijiEbo7O8=
=zl8Z
-----END PGP SIGNATURE-----

--=-JaWoyVnXvxLlDmOdxopF--



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