Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Mar 2023 12:14:04 +0100
From:      Goran =?utf-8?B?TWVracSH?= <meka@tilda.center>
To:        freebsd-current@FreeBSD.org
Subject:   Infinite loop with d_write_t
Message-ID:  <20230319111404.a6ac2w44u4trtedy@tilda.center>

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

--jeef5soifo62kmrh
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline

Hello,

I'm trying to assemble a minimal kernel module and user space program as
a skeleton, and no matter what I do I get infinite loop. The code for
kernel is https://github.com/mekanix/freebsd-project/blob/master/kernel/main.c.
The way to test:
# make
# sudo kldload ./hello.ko
# echo "something" >/dev/hello
Write done.
Write done.
...

What am I doing wrong and where does that infinite loop comes from?

Regards,
meka

--jeef5soifo62kmrh
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE1WIFkXy2ZeMKjjKEWj1TknovrLYFAmQW7nkACgkQWj1Tknov
rLaaqRAAlmGhACuRspncletbMqW3nQF1/hVzbvlXg+Jcp5Z0jHJFyO8vVPPVnruE
4tzA1RI+GNrA5N1dUbOUpBpFjo65b3KHFus/tZN1zm4MyTB4NWdJZXW4k9AIh8EX
F1/yeeh/9uUtd5gFVyFuEBM9Lv84mk2+OIADjW6ArmL9tEouTJw/rs53U5AMWCYj
fFA+uTb2uUmZyAp6BOzwNpGND1Qede3ca/4xWoAMzIlIIMt/e6qisIUPElXYyb2l
vXk5yNpgWANNonEeBoxWI0vgn5XCJkJI1e+mF5iTfnHEYqZeSvRVPbiy5G/t/Xu6
RkGq26s2bsqgo1jFsDQ5PnDkrhdJ9pTl9AKr7GvWQPE1zJpROQzqhcRa35Foh1BJ
7MRyjX5IR5I+zjh9qtmkQWtWCHd3ESZcq/FXO8DWu/AvnE+gGgcK9Gtn9oA0ukd5
pSOi2wKFaQ3xbZiQ1wJLrQNJAjgJrizsz4F3OwSgUDBJnffQ7QenXnsvyOcVkhQD
Bgf8DLZF6ruey/gfBwsUS2Ps4wDPg1Cix6grx+plnd2PJ/EzDZSsntJKwJIx+uP7
QkhlYyWxkcZU1c/eETo6LmWRgz8Ewy3cZCtjP6Y2PY5WU6q/UEoJTPWdXOtxKRJT
d+hRR56xYkbYwrvp0cLH1DmTb4Hr+BEszPlt5U+vAHO3yLjqEfQ=
=2Kdr
-----END PGP SIGNATURE-----

--jeef5soifo62kmrh--



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