Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2019 16:47:27 +0300
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        Alexandru Goia <goia.i.alexandru@gmail.com>, freebsd-hackers@freebsd.org
Subject:   Re: FreeBSD kernel system call
Message-ID:  <5432302a-9b55-d9b2-6001-539dbc02300d@yandex.ru>
In-Reply-To: <CADmgqahndcuy9VDdZ934ohOEAY7Y9VYhyE7%2BBCukuZKm2J68XQ@mail.gmail.com>
References:  <CADmgqahndcuy9VDdZ934ohOEAY7Y9VYhyE7%2BBCukuZKm2J68XQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--kx6RvZhHQnm6v5PAgLy7J4e2AkLYkDPkS
Content-Type: multipart/mixed; boundary="SruJ1dp2x9OWApVrYab68pUnuJBhDUGuM";
 protected-headers="v1"
From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: Alexandru Goia <goia.i.alexandru@gmail.com>, freebsd-hackers@freebsd.org
Message-ID: <5432302a-9b55-d9b2-6001-539dbc02300d@yandex.ru>
Subject: Re: FreeBSD kernel system call
References: <CADmgqahndcuy9VDdZ934ohOEAY7Y9VYhyE7+BCukuZKm2J68XQ@mail.gmail.com>
In-Reply-To: <CADmgqahndcuy9VDdZ934ohOEAY7Y9VYhyE7+BCukuZKm2J68XQ@mail.gmail.com>

--SruJ1dp2x9OWApVrYab68pUnuJBhDUGuM
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 19.06.2019 16:23, Alexandru Goia wrote:
> Greetings !
>=20
> I am trying to write the code to a Unix system call, on the
> FreeBSD 12.0 system. I managed to do that on Linux :
>=20
> http://romania-acknowledges-stars.blogspot.com/2018/10/angel-call-in-ke=
rnel.html
>=20
> but I find hard, without proper documentation, to implement it
> on FreeBSD.
>=20
> I am in trouble understanding the presence of SYSCALL_MODULE(9), and
> its meaning and usage.

Using SYSCALL_MODULE() you can create kernel module with new syscall,
then load this module in run-time and use this syscall in your
application. You can find examples for both kernel module and test
program in referred by manual page location.

--=20
WBR, Andrey V. Elsukov


--SruJ1dp2x9OWApVrYab68pUnuJBhDUGuM--

--kx6RvZhHQnm6v5PAgLy7J4e2AkLYkDPkS
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAl0KPO8ACgkQAcXqBBDI
oXqORgf/cpDQfh8G92MGMzufZWPKnu2BDXc1lJJCLajRWlR63nQHPcxNIGbqgWcM
tU0RHYdQnzulyKhuRtR0QhQHnoUdi5QsDgDEIIRVK28SOVfV7UvVMsITIae3BhO9
cDAv2/I+rNSFRrROEodEwCBlEPtZdIOMcpJzjrmC7dAOrysSAjQt4/1/zI4yNSTz
sKonRiOgs4QdpeOS1hQjyhnx40rYDAyQS8qqNoA+bt/6iZ29OKU4+EcHcqcs+ZLQ
CUR81RLnE2QlXjHq91NLV80XaJtD1gU02BzP4ncsOVpsDb5/4uabRWc2gx88V07O
HyYvywX0qmMY48KcwtlzLvXe9Hr0oA==
=k+5x
-----END PGP SIGNATURE-----

--kx6RvZhHQnm6v5PAgLy7J4e2AkLYkDPkS--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5432302a-9b55-d9b2-6001-539dbc02300d>