Skip site navigation (1)Skip section navigation (2)
Date:      18 Oct 2002 19:38:13 +1000
From:      Benno Rice <benno@FreeBSD.org>
To:        current@freebsd.org
Subject:   kthread.9 out of date
Message-ID:  <1034933896.638.1.camel@ratchet.jeamland.net>

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

--=-TGGSwhVnjOINR+w12jqg
Content-Type: multipart/mixed; boundary="=-47TIfHf0s19dAkptsVS0"


--=-47TIfHf0s19dAkptsVS0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I have just discovered the hard way that the kthread.9 manual page is
slightly out of date.

Having never done man page work before, I've attached a diff of the
proposed change and if someone could give this a once-over and fix
and/or commit it, that'd rock.

Thanks. =3D)

--=20
Benno Rice
benno@FreeBSD.org

--=-47TIfHf0s19dAkptsVS0
Content-Disposition: attachment; filename=kthread-man.diff
Content-Type: text/x-patch; name=kthread-man.diff; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Index: kthread.9
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/share/man/man9/kthread.9,v
retrieving revision 1.11
diff -u -r1.11 kthread.9
--- kthread.9	10 Oct 2002 00:29:22 -0000	1.11
+++ kthread.9	18 Oct 2002 09:36:21 -0000
@@ -44,7 +44,7 @@
 .Ft void
 .Fn kproc_shutdown "void *arg" "int howto"
 .Ft int
-.Fn kthread_create "void (*func)(void *)" "void *arg" "struct proc **newpp=
" "int flags" "const char *fmt" "..."
+.Fn kthread_create "void (*func)(void *)" "void *arg" "struct proc **newpp=
" "int flags" "int pages" "const char *fmt" "..."
 .Ft void
 .Fn kthread_exit "int ecode"
 .Ft int
@@ -121,6 +121,10 @@
 .Fa flags
 argument specifies a set of flags as described in
 .Xr rfork 2 .
+The
+.Fa pages
+argument specifies the size of the new kthread's kernel stack in pages.
+If 0 is used, the default kernel stack size is allocated.
 The rest of the arguments form a
 .Xr printf 9
 argument list that is used to build the name of the new thread and is stor=
ed

--=-47TIfHf0s19dAkptsVS0--

--=-TGGSwhVnjOINR+w12jqg
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

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

iD8DBQA9r9aFXjRwWofFmQkRApRdAJ4vh9NlzyW/kuGpRjv7DEw4fBBMXQCfYGe8
NXPRA9HT+9PhNqN8pUsJ8lA=
=LTyV
-----END PGP SIGNATURE-----

--=-TGGSwhVnjOINR+w12jqg--


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




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