Align major numbers in example modules with sys/conf/majors
Patch submitted by: Aditya Vardhan Padala (silv3r)
This commit is contained in:
parent
bb9db7f0f3
commit
67a548a800
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: luareadhappy.c,v 1.1 2017/04/15 04:27:30 kamil Exp $ */
|
||||
/* $NetBSD: luareadhappy.c,v 1.2 2020/01/30 07:58:33 kamil Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2015 The NetBSD Foundation, Inc.
|
||||
|
@ -27,7 +27,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: luareadhappy.c,v 1.1 2017/04/15 04:27:30 kamil Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: luareadhappy.c,v 1.2 2020/01/30 07:58:33 kamil Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/conf.h>
|
||||
|
@ -42,7 +42,7 @@ __KERNEL_RCSID(0, "$NetBSD: luareadhappy.c,v 1.1 2017/04/15 04:27:30 kamil Exp $
|
|||
* happy numbers.
|
||||
*
|
||||
* To use this device you need to do:
|
||||
* mknod /dev/happy c 210 0
|
||||
* mknod /dev/happy c 351 0
|
||||
*
|
||||
* Commentary:
|
||||
* A happy number is a number defined by the following process: Starting with
|
||||
|
@ -189,7 +189,7 @@ happy_modcmd(modcmd_t cmd, void *arg __unused)
|
|||
{
|
||||
/* The major should be verified and changed if needed to avoid
|
||||
* conflicts with other devices. */
|
||||
int cmajor = 210, bmajor = -1;
|
||||
int cmajor = 351, bmajor = -1;
|
||||
|
||||
switch (cmd) {
|
||||
case MODULE_CMD_INIT:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mapper.c,v 1.1 2019/01/17 20:47:42 kamil Exp $ */
|
||||
/* $NetBSD: mapper.c,v 1.2 2020/01/30 07:58:33 kamil Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2019 The NetBSD Foundation, Inc.
|
||||
|
@ -27,7 +27,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: mapper.c,v 1.1 2019/01/17 20:47:42 kamil Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mapper.c,v 1.2 2020/01/30 07:58:33 kamil Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/conf.h>
|
||||
|
@ -42,7 +42,7 @@ __KERNEL_RCSID(0, "$NetBSD: mapper.c,v 1.1 2019/01/17 20:47:42 kamil Exp $");
|
|||
/*
|
||||
* Creating a device /dev/mapper for demonstration.
|
||||
* To use this device you need to do:
|
||||
* mknod /dev/mapper c 210 0
|
||||
* mknod /dev/mapper c 351 0
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -121,7 +121,7 @@ mapper_modcmd(modcmd_t cmd, void *arg __unused)
|
|||
{
|
||||
/* The major should be verified and changed if needed to avoid
|
||||
* conflicts with other devices. */
|
||||
int cmajor = 210, bmajor = -1;
|
||||
int cmajor = 351, bmajor = -1;
|
||||
|
||||
switch (cmd) {
|
||||
case MODULE_CMD_INIT:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: panic_string.c,v 1.1 2018/05/29 16:53:56 kamil Exp $ */
|
||||
/* $NetBSD: panic_string.c,v 1.2 2020/01/30 07:58:33 kamil Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2018 The NetBSD Foundation, Inc.
|
||||
|
@ -28,7 +28,7 @@
|
|||
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: panic_string.c,v 1.1 2018/05/29 16:53:56 kamil Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: panic_string.c,v 1.2 2020/01/30 07:58:33 kamil Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -46,7 +46,7 @@ __KERNEL_RCSID(0, "$NetBSD: panic_string.c,v 1.1 2018/05/29 16:53:56 kamil Exp $
|
|||
* user input.
|
||||
*
|
||||
* To use this device you need to do:
|
||||
* mknod /dev/panic c 210 0
|
||||
* mknod /dev/panic c 351 0
|
||||
*
|
||||
* To write to the device you might need:
|
||||
* chmod 666 /dev/panic
|
||||
|
@ -173,7 +173,7 @@ panic_string_modcmd(modcmd_t cmd, void *arg __unused)
|
|||
{
|
||||
/* The major should be verified and changed if needed to avoid
|
||||
* conflicts with other devices. */
|
||||
int cmajor = 210, bmajor = -1;
|
||||
int cmajor = 351, bmajor = -1;
|
||||
|
||||
switch (cmd) {
|
||||
case MODULE_CMD_INIT:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ping.c,v 1.1 2015/05/13 07:07:36 pgoyette Exp $ */
|
||||
/* $NetBSD: ping.c,v 1.2 2020/01/30 07:58:33 kamil Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2015 The NetBSD Foundation, Inc.
|
||||
|
@ -27,7 +27,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ping.c,v 1.1 2015/05/13 07:07:36 pgoyette Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ping.c,v 1.2 2020/01/30 07:58:33 kamil Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/conf.h>
|
||||
|
@ -41,7 +41,7 @@ __KERNEL_RCSID(0, "$NetBSD: ping.c,v 1.1 2015/05/13 07:07:36 pgoyette Exp $");
|
|||
* Create a device /dev/ping in order to test this module.
|
||||
*
|
||||
* To use this device you need to do:
|
||||
* mknod /dev/ping c 210 0
|
||||
* mknod /dev/ping c 351 0
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -112,7 +112,7 @@ ping_modcmd(modcmd_t cmd, void *arg __unused)
|
|||
{
|
||||
/* The major should be verified and changed if needed to avoid
|
||||
* conflicts with other devices. */
|
||||
int cmajor = 210, bmajor = -1;
|
||||
int cmajor = 351, bmajor = -1;
|
||||
|
||||
switch (cmd) {
|
||||
case MODULE_CMD_INIT:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: readhappy_mpsafe.c,v 1.1 2018/04/20 00:06:45 kamil Exp $ */
|
||||
/* $NetBSD: readhappy_mpsafe.c,v 1.2 2020/01/30 07:58:34 kamil Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2018 The NetBSD Foundation, Inc.
|
||||
|
@ -27,7 +27,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: readhappy_mpsafe.c,v 1.1 2018/04/20 00:06:45 kamil Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: readhappy_mpsafe.c,v 1.2 2020/01/30 07:58:34 kamil Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/module.h>
|
||||
|
@ -48,7 +48,7 @@ __KERNEL_RCSID(0, "$NetBSD: readhappy_mpsafe.c,v 1.1 2018/04/20 00:06:45 kamil E
|
|||
* Create a device /dev/happy_mpsafe from which you can read sequential happy numbers.
|
||||
*
|
||||
* To use this device you need to do:
|
||||
* mknod /dev/happy_mpsafe c 210 0
|
||||
* mknod /dev/happy_mpsafe c 351 0
|
||||
*
|
||||
* To test whether the device is MPSAFE. Compile and run the test_readhappy file
|
||||
* provided.
|
||||
|
@ -219,7 +219,7 @@ MODULE(MODULE_CLASS_MISC, happy_mpsafe, NULL);
|
|||
static int
|
||||
happy_mpsafe_modcmd(modcmd_t cmd, void *arg __unused)
|
||||
{
|
||||
int cmajor = 210, bmajor = -1;
|
||||
int cmajor = 351, bmajor = -1;
|
||||
|
||||
switch (cmd) {
|
||||
case MODULE_CMD_INIT:
|
||||
|
|
Loading…
Reference in New Issue