dtrace: add warning for /dev/dtrace/prototype

Let the programmer know that creating a device is not necessary.

Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D35381
This commit is contained in:
Christos Margiolis 2022-06-01 12:58:31 -04:00 committed by Mark Johnston
parent 2a72a1a41b
commit 034667f9fa

View File

@ -82,7 +82,10 @@ prototype_disable(void *arg, dtrace_id_t id, void *parg)
static void
prototype_load(void *dummy)
{
/* Create the /dev/dtrace/prototype entry. */
/*
* Create the /dev/dtrace/prototype entry.
* XXX: Remove this if the provider does not need any customs ioctls.
*/
prototype_cdev = make_dev(&prototype_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600,
"dtrace/prototype");