CVS commit: src/sys/modules/examples

2021-08-08 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Aug  8 20:55:33 UTC 2021

Modified Files:
src/sys/modules/examples: Makefile

Log Message:
Add ddbping example module to SUBDIR list.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/modules/examples/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples/sysctl

2021-03-23 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Tue Mar 23 13:19:09 UTC 2021

Modified Files:
src/sys/modules/examples/sysctl: sysctl.c

Log Message:
Add some \n's to the end of some printf()s.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/examples/sysctl/sysctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples/ddbping

2020-05-31 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jun  1 03:37:40 UTC 2020

Added Files:
src/sys/modules/examples/ddbping: Makefile ddbping.c

Log Message:
Example of a kernel module that registers DDB commands.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/ddbping/Makefile \
src/sys/modules/examples/ddbping/ddbping.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples/pollpal

2020-05-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri May  1 21:42:34 UTC 2020

Modified Files:
src/sys/modules/examples/pollpal: pollpal.c

Log Message:
s/&&/&/ and also return POLLRDNORM (pointed out by joerg@)


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/modules/examples/pollpal/pollpal.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples/ping

2020-04-30 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Apr 30 10:55:32 UTC 2020

Modified Files:
src/sys/modules/examples/ping: ping.c

Log Message:
remove debugging stuff accidentally committed.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/modules/examples/ping/ping.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples/pollpal

2020-04-30 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Apr 30 07:07:22 UTC 2020

Modified Files:
src/sys/modules/examples/pollpal: pollpal.c

Log Message:
include sys/lwp.h and fix the build.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/examples/pollpal/pollpal.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2020-04-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Apr 30 00:48:10 UTC 2020

Modified Files:
src/sys/modules/examples: Makefile README
src/sys/modules/examples/ping: ping.c
Added Files:
src/sys/modules/examples/pollpal: Makefile cmd_pollpal.c pollpal.c

Log Message:
New kernel example module written by Ayushi Sharma


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/modules/examples/Makefile
cvs rdiff -u -r1.14 -r1.15 src/sys/modules/examples/README
cvs rdiff -u -r1.3 -r1.4 src/sys/modules/examples/ping/ping.c
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/pollpal/Makefile \
src/sys/modules/examples/pollpal/cmd_pollpal.c \
src/sys/modules/examples/pollpal/pollpal.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples/current_time

2020-04-04 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sat Apr  4 23:22:12 UTC 2020

Modified Files:
src/sys/modules/examples/current_time: current_time.c

Log Message:
Switch to type generic PRIu macros

Fixes build on i386.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/examples/current_time/current_time.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2020-04-04 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sat Apr  4 21:15:04 UTC 2020

Modified Files:
src/sys/modules/examples: Makefile README
Added Files:
src/sys/modules/examples/current_time: Makefile current_time.c

Log Message:
Add new example kernel module: current_time

Submitted by Apurva Nandan.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/modules/examples/Makefile
cvs rdiff -u -r1.13 -r1.14 src/sys/modules/examples/README
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/current_time/Makefile \
src/sys/modules/examples/current_time/current_time.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples/fopsmapper

2020-04-01 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Apr  1 13:07:32 UTC 2020

Modified Files:
src/sys/modules/examples/fopsmapper: cmd_mapper.c

Log Message:
Fix CVS Id


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/examples/fopsmapper/cmd_mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples/fopsmapper

2020-04-01 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Apr  1 11:45:53 UTC 2020

Modified Files:
src/sys/modules/examples/fopsmapper: fopsmapper.c

Log Message:
Avoid comparison between signed and unsigned integer

Cast PAGE_SIZE to size_t.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/examples/fopsmapper/fopsmapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2020-03-31 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Apr  1 01:57:20 UTC 2020

Modified Files:
src/sys/modules/examples: Makefile README
Added Files:
src/sys/modules/examples/fopsmapper: Makefile cmd_mapper.c fopsmapper.c

Log Message:
Import a new example kernel module fopsmapper

fopsmapper - basic implementation of mmap with fileops fo_mmap

Submitted by Aditya Vardhan Padala.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/modules/examples/Makefile
cvs rdiff -u -r1.12 -r1.13 src/sys/modules/examples/README
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/fopsmapper/Makefile \
src/sys/modules/examples/fopsmapper/cmd_mapper.c \
src/sys/modules/examples/fopsmapper/fopsmapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2020-02-07 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Fri Feb  7 19:22:21 UTC 2020

Modified Files:
src/sys/modules/examples: README

Log Message:
Improve wording


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/modules/examples/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2020-02-06 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Feb  6 22:52:26 UTC 2020

Modified Files:
src/sys/modules/examples: README

Log Message:
Document what does ping_block.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/modules/examples/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2020-02-05 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Feb  5 14:10:47 UTC 2020

Modified Files:
src/sys/modules/examples/ping: ping.c
src/sys/modules/examples/ping_block: ping.c

Log Message:
Use ENOTTY as error for an unrecognized ioctl() code, rather than
"magic number" 1.

ok kamil@


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/modules/examples/ping/ping.c
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/examples/ping_block/ping.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2020-02-05 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Feb  5 13:23:42 UTC 2020

Modified Files:
src/sys/modules/examples: Makefile README
Added Files:
src/sys/modules/examples/ping_block: Makefile cmd_ping.c ping.c ping.h

Log Message:
Import new example kernel module ping_block

Subbmitted by Nisarg Joshi.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/modules/examples/Makefile
cvs rdiff -u -r1.9 -r1.10 src/sys/modules/examples/README
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/ping_block/Makefile \
src/sys/modules/examples/ping_block/cmd_ping.c \
src/sys/modules/examples/ping_block/ping.c \
src/sys/modules/examples/ping_block/ping.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2020-01-29 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Jan 30 07:58:34 UTC 2020

Modified Files:
src/sys/modules/examples/luareadhappy: luareadhappy.c
src/sys/modules/examples/mapper: mapper.c
src/sys/modules/examples/panic_string: panic_string.c
src/sys/modules/examples/ping: ping.c
src/sys/modules/examples/readhappy_mpsafe: readhappy_mpsafe.c

Log Message:
Align major numbers in example modules with sys/conf/majors

Patch submitted by: Aditya Vardhan Padala (silv3r)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/examples/luareadhappy/luareadhappy.c
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/examples/mapper/mapper.c
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/examples/panic_string/panic_string.c
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/examples/ping/ping.c
cvs rdiff -u -r1.1 -r1.2 \
src/sys/modules/examples/readhappy_mpsafe/readhappy_mpsafe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples/executor

2019-12-14 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Sat Dec 14 15:36:08 UTC 2019

Modified Files:
src/sys/modules/examples/executor: executor.c

Log Message:
Use MPSAFE callouts.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/examples/executor/executor.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2019-01-17 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Jan 17 20:47:42 UTC 2019

Modified Files:
src/sys/modules/examples: Makefile README
Added Files:
src/sys/modules/examples/mapper: Makefile cmd_mapper.c mapper.c

Log Message:
Add a new example kernel module: mapper

Basic implementation of mmap.

Submitted by Akul Pillai.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/modules/examples/Makefile
cvs rdiff -u -r1.8 -r1.9 src/sys/modules/examples/README
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/mapper/Makefile \
src/sys/modules/examples/mapper/cmd_mapper.c \
src/sys/modules/examples/mapper/mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2018-05-29 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue May 29 16:53:56 UTC 2018

Modified Files:
src/sys/modules/examples: Makefile README
Added Files:
src/sys/modules/examples/panic_string: Makefile panic_string.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/modules/examples/Makefile
cvs rdiff -u -r1.7 -r1.8 src/sys/modules/examples/README
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/panic_string/Makefile \
src/sys/modules/examples/panic_string/panic_string.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2018-04-19 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Fri Apr 20 00:06:45 UTC 2018

Modified Files:
src/sys/modules/examples: Makefile README
Added Files:
src/sys/modules/examples/readhappy_mpsafe: Makefile readhappy_mpsafe.c
test_readhappy.c

Log Message:
Add new example loadable kernel module example: 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 


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/modules/examples/Makefile
cvs rdiff -u -r1.6 -r1.7 src/sys/modules/examples/README
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/readhappy_mpsafe/Makefile \
src/sys/modules/examples/readhappy_mpsafe/readhappy_mpsafe.c \
src/sys/modules/examples/readhappy_mpsafe/test_readhappy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2018-04-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Fri Apr 13 20:30:09 UTC 2018

Modified Files:
src/sys/modules/examples: Makefile README
Added Files:
src/sys/modules/examples/executor: Makefile executor.c

Log Message:
Add a new example kernel module

executor - basic implementation of callout and RUN_ONCE

While there, perform a small cleanup in README.

Patch by 
Polishing by myself.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/modules/examples/Makefile
cvs rdiff -u -r1.5 -r1.6 src/sys/modules/examples/README
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/executor/Makefile \
src/sys/modules/examples/executor/executor.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2018-04-12 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Fri Apr 13 01:20:28 UTC 2018

Modified Files:
src/sys/modules/examples: Makefile README
Added Files:
src/sys/modules/examples/sysctl: Makefile sysctl.c

Log Message:
Add new example kernel module: sysctl

sysctl - demonstrates adding a sysctl handle dynamically.

Patch by 
Polishing by myself.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/modules/examples/Makefile
cvs rdiff -u -r1.4 -r1.5 src/sys/modules/examples/README
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/sysctl/Makefile \
src/sys/modules/examples/sysctl/sysctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2017-04-23 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Sun Apr 23 23:39:42 UTC 2017

Modified Files:
src/sys/modules/examples: README

Log Message:
Add luareadhappy to the list.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/modules/examples/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2017-04-15 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sat Apr 15 18:22:35 UTC 2017

Modified Files:
src/sys/modules/examples: Makefile

Log Message:
Build without installation example lua kernel module: luareadhappy


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/examples/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples/luareadhappy

2017-04-14 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sat Apr 15 04:27:30 UTC 2017

Added Files:
src/sys/modules/examples/luareadhappy: Makefile happy.lua
luareadhappy.c

Log Message:
Add new example kernel module in Lua luareadhappy

This example presents a C module with its device (/dev entry) and its
content generator with algorithm defined in Lua state. The Lua state can
be changed dynamically from userland, without interruption of read(2) over
the device.

This is an example how to call Lua code from C.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/luareadhappy/Makefile \
src/sys/modules/examples/luareadhappy/happy.lua \
src/sys/modules/examples/luareadhappy/luareadhappy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2015-05-14 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Fri May 15 06:21:12 UTC 2015

Modified Files:
src/sys/modules/examples: README

Log Message:
Even though this isn't a man page, it looks like one.  So sort the
SEE ALSO section accordingly.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/modules/examples/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2015-05-13 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed May 13 22:41:48 UTC 2015

Modified Files:
src/sys/modules/examples: README

Log Message:
Fix up another internal reference to renamed module, and adjust some
English grammar.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/examples/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples/luahello

2015-05-13 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed May 13 22:37:53 UTC 2015

Modified Files:
src/sys/modules/examples/luahello: luahello.lua

Log Message:
Fix instructions to match reality.  (I renamed the example from the
original submitter, but didn't catch all internal references.)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/examples/luahello/luahello.lua

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples/ping

2015-05-13 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed May 13 12:13:38 UTC 2015

Modified Files:
src/sys/modules/examples/ping: cmd_ping.c

Log Message:
Fix RCS ID.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/examples/ping/cmd_ping.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/modules/examples

2015-05-13 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed May 13 07:07:36 UTC 2015

Added Files:
src/sys/modules/examples: Makefile Makefile.inc README
src/sys/modules/examples/hello: Makefile hello.c
src/sys/modules/examples/luahello: luahello.lua
src/sys/modules/examples/ping: Makefile cmd_ping.c ping.c ping.h
src/sys/modules/examples/properties: Makefile properties.c
src/sys/modules/examples/readhappy: Makefile readhappy.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/Makefile \
src/sys/modules/examples/Makefile.inc src/sys/modules/examples/README
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/hello/Makefile \
src/sys/modules/examples/hello/hello.c
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/luahello/luahello.lua
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/ping/Makefile \
src/sys/modules/examples/ping/cmd_ping.c \
src/sys/modules/examples/ping/ping.c src/sys/modules/examples/ping/ping.h
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/properties/Makefile \
src/sys/modules/examples/properties/properties.c
cvs rdiff -u -r0 -r1.1 src/sys/modules/examples/readhappy/Makefile \
src/sys/modules/examples/readhappy/readhappy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.