head	1.12;
access;
symbols
	netbsd-11-0-RC5:1.12
	netbsd-11-0-RC4:1.12
	netbsd-11-0-RC3:1.12
	netbsd-11-0-RC2:1.12
	netbsd-11-0-RC1:1.12
	perseant-exfatfs-base-20250801:1.12
	netbsd-11:1.12.0.14
	netbsd-11-base:1.12
	netbsd-10-1-RELEASE:1.12
	perseant-exfatfs-base-20240630:1.12
	perseant-exfatfs:1.12.0.12
	perseant-exfatfs-base:1.12
	netbsd-8-3-RELEASE:1.2
	netbsd-9-4-RELEASE:1.7
	netbsd-10-0-RELEASE:1.12
	netbsd-10-0-RC6:1.12
	netbsd-10-0-RC5:1.12
	netbsd-10-0-RC4:1.12
	netbsd-10-0-RC3:1.12
	netbsd-10-0-RC2:1.12
	thorpej-ifq:1.12.0.10
	thorpej-ifq-base:1.12
	thorpej-altq-separation:1.12.0.8
	thorpej-altq-separation-base:1.12
	netbsd-10-0-RC1:1.12
	netbsd-10:1.12.0.6
	netbsd-10-base:1.12
	bouyer-sunxi-drm:1.12.0.4
	bouyer-sunxi-drm-base:1.12
	netbsd-9-3-RELEASE:1.7
	thorpej-i2c-spi-conf2:1.12.0.2
	thorpej-i2c-spi-conf2-base:1.12
	thorpej-futex2:1.11.0.14
	thorpej-futex2-base:1.11
	thorpej-cfargs2:1.11.0.12
	thorpej-cfargs2-base:1.11
	cjep_sun2x-base1:1.11
	cjep_sun2x:1.11.0.10
	cjep_sun2x-base:1.11
	cjep_staticlib_x-base1:1.11
	netbsd-9-2-RELEASE:1.7
	cjep_staticlib_x:1.11.0.8
	cjep_staticlib_x-base:1.11
	thorpej-i2c-spi-conf:1.11.0.6
	thorpej-i2c-spi-conf-base:1.11
	thorpej-cfargs:1.11.0.4
	thorpej-cfargs-base:1.11
	thorpej-futex:1.11.0.2
	thorpej-futex-base:1.11
	netbsd-9-1-RELEASE:1.7
	bouyer-xenpvh-base2:1.10
	phil-wifi-20200421:1.10
	bouyer-xenpvh-base1:1.10
	phil-wifi-20200411:1.10
	bouyer-xenpvh:1.10.0.2
	bouyer-xenpvh-base:1.10
	is-mlppp:1.8.0.2
	is-mlppp-base:1.8
	phil-wifi-20200406:1.10
	netbsd-8-2-RELEASE:1.2
	ad-namecache-base3:1.8
	netbsd-9-0-RELEASE:1.7
	netbsd-9-0-RC2:1.7
	ad-namecache-base2:1.7
	ad-namecache-base1:1.7
	ad-namecache:1.7.0.6
	ad-namecache-base:1.7
	netbsd-9-0-RC1:1.7
	phil-wifi-20191119:1.7
	netbsd-9:1.7.0.4
	netbsd-9-base:1.7
	phil-wifi-20190609:1.7
	netbsd-8-1-RELEASE:1.2
	netbsd-8-1-RC1:1.2
	isaki-audio2:1.7.0.2
	isaki-audio2-base:1.7
	pgoyette-compat-merge-20190127:1.2.12.4
	pgoyette-compat-20190127:1.7
	pgoyette-compat-20190118:1.7
	pgoyette-compat-1226:1.6
	pgoyette-compat-1126:1.6
	pgoyette-compat-1020:1.6
	pgoyette-compat-0930:1.6
	pgoyette-compat-0906:1.6
	netbsd-7-2-RELEASE:1.1.2.2
	pgoyette-compat-0728:1.6
	netbsd-8-0-RELEASE:1.2
	phil-wifi:1.6.0.2
	phil-wifi-base:1.6
	pgoyette-compat-0625:1.6
	netbsd-8-0-RC2:1.2
	pgoyette-compat-0521:1.5
	pgoyette-compat-0502:1.5
	pgoyette-compat-0422:1.5
	netbsd-8-0-RC1:1.2
	pgoyette-compat-0415:1.4
	pgoyette-compat-0407:1.2
	pgoyette-compat-0330:1.2
	pgoyette-compat-0322:1.2
	pgoyette-compat-0315:1.2
	netbsd-7-1-2-RELEASE:1.1.2.2
	pgoyette-compat:1.2.0.12
	pgoyette-compat-base:1.2
	netbsd-7-1-1-RELEASE:1.1.2.2
	tls-maxphys:1.2.0.10
	tls-maxphys-base-20171202:1.2
	matt-nb8-mediatek:1.2.0.8
	matt-nb8-mediatek-base:1.2
	nick-nhusb-base-20170825:1.2
	perseant-stdc-iso10646:1.2.0.6
	perseant-stdc-iso10646-base:1.2
	netbsd-8:1.2.0.4
	netbsd-8-base:1.2
	prg-localcount2-base3:1.2
	prg-localcount2-base2:1.2
	prg-localcount2-base1:1.2
	prg-localcount2:1.2.0.2
	prg-localcount2-base:1.2
	pgoyette-localcount-20170426:1.2
	bouyer-socketcan-base1:1.2
	jdolecek-ncq:1.1.0.10
	jdolecek-ncq-base:1.1
	pgoyette-localcount-20170320:1.1
	netbsd-7-1:1.1.2.2.0.6
	netbsd-7-1-RELEASE:1.1.2.2
	netbsd-7-1-RC2:1.1.2.2
	nick-nhusb-base-20170204:1.1
	netbsd-7-nhusb-base-20170116:1.1.2.2
	bouyer-socketcan:1.1.0.8
	bouyer-socketcan-base:1.1
	pgoyette-localcount-20170107:1.1
	netbsd-7-1-RC1:1.1.2.2
	nick-nhusb-base-20161204:1.1
	pgoyette-localcount-20161104:1.1
	netbsd-7-0-2-RELEASE:1.1.2.2
	nick-nhusb-base-20161004:1.1
	localcount-20160914:1.1
	netbsd-7-nhusb:1.1.2.2.0.4
	netbsd-7-nhusb-base:1.1.2.2
	pgoyette-localcount-20160806:1.1
	pgoyette-localcount-20160726:1.1
	pgoyette-localcount:1.1.0.6
	pgoyette-localcount-base:1.1
	nick-nhusb-base-20160907:1.1
	nick-nhusb-base-20160529:1.1
	netbsd-7-0-1-RELEASE:1.1.2.2
	nick-nhusb-base-20160422:1.1
	nick-nhusb-base-20160319:1.1
	nick-nhusb-base-20151226:1.1
	netbsd-7-0:1.1.2.2.0.2
	netbsd-7-0-RELEASE:1.1.2.2
	nick-nhusb-base-20150921:1.1
	netbsd-7-0-RC3:1.1.2.2
	netbsd-7-0-RC2:1.1.2.2
	netbsd-7-0-RC1:1.1.2.2
	nick-nhusb:1.1.0.4
	nick-nhusb-base-20150606:1.1
	netbsd-7:1.1.0.2;
locks; strict;
comment	@# @;


1.12
date	2021.08.08.20.55.33;	author uwe;	state Exp;
branches;
next	1.11;
commitid	jpMJW3Z82TVx8d4D;

1.11
date	2020.04.30.00.48.10;	author christos;	state Exp;
branches;
next	1.10;
commitid	8qNfk9dqrKNPol6C;

1.10
date	2020.04.04.21.15.04;	author kamil;	state Exp;
branches;
next	1.9;
commitid	H8vcRk6gxKQu173C;

1.9
date	2020.04.01.01.57.20;	author kamil;	state Exp;
branches;
next	1.8;
commitid	iuxFkHmRwRfmHC2C;

1.8
date	2020.02.05.13.23.42;	author kamil;	state Exp;
branches;
next	1.7;
commitid	QJcJ466hdPcjfuVB;

1.7
date	2019.01.17.20.47.42;	author kamil;	state Exp;
branches
	1.7.6.1;
next	1.6;
commitid	Ywylwlnb6oKY6b8B;

1.6
date	2018.05.29.16.53.56;	author kamil;	state Exp;
branches
	1.6.2.1;
next	1.5;
commitid	h3NyV4HXaoxqgdEA;

1.5
date	2018.04.20.00.06.45;	author kamil;	state Exp;
branches;
next	1.4;
commitid	sw7zaXbvcW0VW6zA;

1.4
date	2018.04.13.20.30.09;	author kamil;	state Exp;
branches;
next	1.3;
commitid	lCQRqQwjQ2BoXjyA;

1.3
date	2018.04.13.01.20.27;	author kamil;	state Exp;
branches;
next	1.2;
commitid	Xa4g4Tkw2F1HBdyA;

1.2
date	2017.04.15.18.22.35;	author kamil;	state Exp;
branches
	1.2.10.1
	1.2.12.1;
next	1.1;
commitid	wrsYQk0cQU9EWENz;

1.1
date	2015.05.13.07.07.36;	author pgoyette;	state Exp;
branches
	1.1.2.1
	1.1.4.1
	1.1.6.1
	1.1.8.1;
next	;
commitid	pnQwybISWW4uNfly;

1.7.6.1
date	2020.02.29.20.21.05;	author ad;	state Exp;
branches;
next	;
commitid	OjSb8ro7YQETQBYB;

1.6.2.1
date	2019.06.10.22.09.23;	author christos;	state Exp;
branches;
next	1.6.2.2;
commitid	jtc8rnCzWiEEHGqB;

1.6.2.2
date	2020.04.08.14.08.55;	author martin;	state Exp;
branches;
next	;
commitid	Qli2aW9E74UFuA3C;

1.2.10.1
date	2017.04.15.18.22.35;	author jdolecek;	state dead;
branches;
next	1.2.10.2;
commitid	XcIYRZTAh1LmerhA;

1.2.10.2
date	2017.12.03.11.38.53;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.2.12.1
date	2018.04.16.02.00.08;	author pgoyette;	state Exp;
branches;
next	1.2.12.2;
commitid	qk3nktk0szmTIByA;

1.2.12.2
date	2018.04.22.07.20.27;	author pgoyette;	state Exp;
branches;
next	1.2.12.3;
commitid	W6xykws0Zbl4kpzA;

1.2.12.3
date	2018.06.25.07.26.05;	author pgoyette;	state Exp;
branches;
next	1.2.12.4;
commitid	8PtAu9af7VvhiDHA;

1.2.12.4
date	2019.01.18.08.50.57;	author pgoyette;	state Exp;
branches;
next	;
commitid	Lmlzg3OVT2cd6f8B;

1.1.2.1
date	2015.05.13.07.07.36;	author snj;	state dead;
branches;
next	1.1.2.2;
commitid	fUny1Sr2n6CN2Xny;

1.1.2.2
date	2015.06.03.06.51.40;	author snj;	state Exp;
branches;
next	;
commitid	fUny1Sr2n6CN2Xny;

1.1.4.1
date	2015.05.13.07.07.36;	author skrll;	state dead;
branches;
next	1.1.4.2;
commitid	O6LVO5i6UulOvnoy;

1.1.4.2
date	2015.06.06.14.40.23;	author skrll;	state Exp;
branches;
next	1.1.4.3;
commitid	O6LVO5i6UulOvnoy;

1.1.4.3
date	2017.08.28.17.53.09;	author skrll;	state Exp;
branches;
next	;
commitid	UQQpnjvcNkUZn05A;

1.1.6.1
date	2017.04.26.02.53.28;	author pgoyette;	state Exp;
branches;
next	;
commitid	ojV02aOSdzvBqZOz;

1.1.8.1
date	2017.04.21.16.54.04;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;


desc
@@


1.12
log
@Add ddbping example module to SUBDIR list.
@
text
@#	$NetBSD: Makefile,v 1.11 2020/04/30 00:48:10 christos Exp $

.include <bsd.own.mk>

SUBDIR+=	current_time
SUBDIR+=	ddbping
SUBDIR+=	executor
SUBDIR+=	fopsmapper		# Needs an additional helper program
SUBDIR+=	hello
#SUBDIR+=	luahello		# Nothing to build here, only text files
SUBDIR+=	luareadhappy		# Needs an additional Lua script
SUBDIR+=	mapper			# Needs an additional helper program
SUBDIR+=	panic_string		# Crashes the system
SUBDIR+=	ping			# Needs an additional helper program
SUBDIR+=	ping_block		# Needs an additional helper program
SUBDIR+=	pollpal			# Needs an additional helper program
SUBDIR+=	properties
SUBDIR+=	readhappy
SUBDIR+=	readhappy_mpsafe	# Contains an additional helper program
SUBDIR+=	sysctl

.include <bsd.subdir.mk>
@


1.11
log
@New kernel example module written by Ayushi Sharma
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2020/04/04 21:15:04 kamil Exp $
d6 1
@


1.10
log
@Add new example kernel module: current_time

Submitted by Apurva Nandan.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2020/04/01 01:57:20 kamil Exp $
d15 1
@


1.9
log
@Import a new example kernel module fopsmapper

fopsmapper - basic implementation of mmap with fileops fo_mmap

Submitted by Aditya Vardhan Padala.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2020/02/05 13:23:42 kamil Exp $
d5 1
@


1.8
log
@Import new example kernel module ping_block

Subbmitted by Nisarg Joshi.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2019/01/17 20:47:42 kamil Exp $
d6 1
@


1.7
log
@Add a new example kernel module: mapper

Basic implementation of mmap.

Submitted by Akul Pillai.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2018/05/29 16:53:56 kamil Exp $
d12 1
@


1.7.6.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2020/02/05 13:23:42 kamil Exp $
a11 1
SUBDIR+=	ping_block		# Needs an additional helper program
@


1.6
log
@Introduce new example kernel module: panic_string

The panic_string module accepts input from a device file over the write(2)
system call.

It prints panic(9) message passed from user space, e.g.:

   echo "Hello world" > /dev/panic

If a string is empty or contain only whitespaces it's ignored and panic(9)
is not triggered. If a non printable character is passed within the input
buffer, the rest of the string is ignored.

This module performs the sync(8) operation before panic(9) to flush cache.

Submitted by Harry Pantazis.
Simplified and cleaned up by myself.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2018/04/20 00:06:45 kamil Exp $
d9 1
@


1.6.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2019/01/17 20:47:42 kamil Exp $
a8 1
SUBDIR+=	mapper			# Needs an additional helper program
@


1.6.2.2
log
@Merge changes from current as of 20200406
@
text
@d1 1
a1 1
#	$NetBSD$
a4 1
SUBDIR+=	current_time
a5 1
SUBDIR+=	fopsmapper		# Needs an additional helper program
a11 1
SUBDIR+=	ping_block		# Needs an additional helper program
@


1.5
log
@
Add new example loadable kernel module: readhappy_mpsafe

readhappy_mpsafe - demonstrates how to make a module MPSAFE

This module contains an additional helper program test_readhappy.c,
that is designed to exercise the kernel module with multiple threads.

Submitted by <Siddharth Muralee>
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2018/04/13 20:30:09 kamil Exp $
d9 1
@


1.4
log
@Add a new example kernel module

executor - basic implementation of callout and RUN_ONCE

While there, perform a small cleanup in README.

Patch by <Siddharth Muralee>
Polishing by myself.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2018/04/13 01:20:27 kamil Exp $
d5 1
d7 3
a9 4
SUBDIR+=	executor
#SUBDIR+=	luahello	# Nothing to build here, only text files
SUBDIR+=	luareadhappy	# Needs an additional Lua script
SUBDIR+=	ping		# Needs an additional helper program
d12 1
@


1.3
log
@Add new example kernel module: sysctl

sysctl - demonstrates adding a sysctl handle dynamically.

Patch by <Siddharth Muralee>
Polishing by myself.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2017/04/15 18:22:35 kamil Exp $
d6 1
@


1.2
log
@Build without installation example lua kernel module: luareadhappy
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2015/05/13 07:07:36 pgoyette Exp $
d11 1
@


1.2.12.1
log
@Sync with HEAD, resolve some conflicts
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2018/04/13 20:30:09 kamil Exp $
a5 1
SUBDIR+=	executor
a10 1
SUBDIR+=	sysctl
@


1.2.12.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2018/04/20 00:06:45 kamil Exp $
d5 1
d7 3
a9 4
SUBDIR+=	hello
#SUBDIR+=	luahello		# Nothing to build here, only text files
SUBDIR+=	luareadhappy		# Needs an additional Lua script
SUBDIR+=	ping			# Needs an additional helper program
a11 1
SUBDIR+=	readhappy_mpsafe	# Contains an additional helper program
@


1.2.12.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2018/05/29 16:53:56 kamil Exp $
a8 1
SUBDIR+=	panic_string		# Crashes the system
@


1.2.12.4
log
@Synch with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2.12.3 2018/06/25 07:26:05 pgoyette Exp $
a8 1
SUBDIR+=	mapper			# Needs an additional helper program
@


1.2.10.1
log
@file Makefile was added on branch tls-maxphys on 2017-12-03 11:38:53 +0000
@
text
@d1 12
@


1.2.10.2
log
@update from HEAD
@
text
@a0 12
#	$NetBSD$

.include <bsd.own.mk>

SUBDIR+=	hello
#SUBDIR+=	luahello	# Nothing to build here, only text files
SUBDIR+=	luareadhappy	# Needs an additional Lua script
SUBDIR+=	ping		# Needs an additional helper program
SUBDIR+=	properties
SUBDIR+=	readhappy

.include <bsd.subdir.mk>
@


1.1
log
@A set of more comprehensive example kernel modules to replace our
previous single example.

These examples were provided by Kamil Rytarowski.

XXX These modules are built as part of a system build, but they
XXX are NOT installed in $DESTDIR.
@
text
@d1 1
a1 1
#	$NetBSD$
d7 1
@


1.1.6.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2017/04/15 18:22:35 kamil Exp $
a6 1
SUBDIR+=	luareadhappy	# Needs an additional Lua script
@


1.1.8.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2017/04/15 18:22:35 kamil Exp $
a6 1
SUBDIR+=	luareadhappy	# Needs an additional Lua script
@


1.1.4.1
log
@file Makefile was added on branch nick-nhusb on 2015-06-06 14:40:23 +0000
@
text
@d1 11
@


1.1.4.2
log
@Sync with HEAD
@
text
@a0 11
#	$NetBSD: Makefile,v 1.1 2015/05/13 07:07:36 pgoyette Exp $

.include <bsd.own.mk>

SUBDIR+=	hello
#SUBDIR+=	luahello	# Nothing to build here, only text files
SUBDIR+=	ping		# Needs an additional helper program
SUBDIR+=	properties
SUBDIR+=	readhappy

.include <bsd.subdir.mk>
@


1.1.4.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.4.2 2015/06/06 14:40:23 skrll Exp $
a6 1
SUBDIR+=	luareadhappy	# Needs an additional Lua script
@


1.1.2.1
log
@file Makefile was added on branch netbsd-7 on 2015-06-03 06:51:40 +0000
@
text
@d1 11
@


1.1.2.2
log
@Pull up following revision(s) (requested by pgoyette in ticket #752):
	sys/modules/example/Makefile: file removal
	sys/modules/example/example.c: file removal
	sys/modules/examples/Makefile: revision 1.1
	sys/modules/examples/Makefile.inc: revision 1.1
	sys/modules/examples/README: revisions 1.1-1.3
	sys/modules/examples/hello/Makefile: revision 1.1
	sys/modules/examples/hello/hello.c: revision 1.1
	sys/modules/examples/luahello/luahello.lua: revisions 1.1, 1.2
	sys/modules/examples/ping/Makefile: revision 1.1
	sys/modules/examples/ping/cmd_ping.c: revisions 1.1, 1.2
	sys/modules/examples/ping/ping.c: revision 1.1
	sys/modules/examples/ping/ping.h: revision 1.1
	sys/modules/examples/properties/Makefile: revision 1.1
	sys/modules/examples/properties/properties.c: revision 1.1
	sys/modules/examples/readhappy/Makefile: revision 1.1
	sys/modules/examples/readhappy/readhappy.c: revision 1.1
Soon to be replaced with a more comprehensive set of examples.
--
A set of more comprehensive example kernel modules to replace our
previous single example.
These examples were provided by Kamil Rytarowski.
XXX These modules are built as part of a system build, but they
XXX are NOT installed in $DESTDIR.
--
Fix instructions to match reality.  (I renamed the example from the
original submitter, but didn't catch all internal references.)
--
Fix up another internal reference to renamed module, and adjust some
English grammar.
--
Even though this isn't a man page, it looks like one.  So sort the
SEE ALSO section accordingly.
--
Fix RCS ID.
@
text
@a0 11
#	$NetBSD$

.include <bsd.own.mk>

SUBDIR+=	hello
#SUBDIR+=	luahello	# Nothing to build here, only text files
SUBDIR+=	ping		# Needs an additional helper program
SUBDIR+=	properties
SUBDIR+=	readhappy

.include <bsd.subdir.mk>
@


