Bug 8621 - kld exmaples for /usr/share/examples/kld
Summary: kld exmaples for /usr/share/examples/kld
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 3.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-11-09 05:10 UTC by rv
Modified: 1998-12-11 10:47 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rv 1998-11-09 05:10:01 UTC
I just created a couple of example kld modules to introduce
people to kld modules.

One is a system call - a port of the original lkm module.
The other is a character device driver - simple ioctl ...

Fix: 

I have ftp'd the tar file kld_examples.tar.gz to 
ftp://ftp.freebsd.org/pub/FreeBSD/incoming

These files can be untarred into /usr/share/examples/

rv>gzip -dc kld_examples.tar.gz | tar tvf -
drwxr-xr-x rv/wheel          0 Nov  8 22:37 1998 ./kld/
drwxr-xr-x rv/wheel          0 Nov  8 22:44 1998 ./kld/cdev/
drwxr-xr-x rv/wheel          0 Nov  9 00:00 1998 ./kld/cdev/test/
-rw-r--r-- rv/wheel       2352 Nov  8 23:43 1998 ./kld/cdev/test/Makefile
-rw-r--r-- rv/wheel       2356 Nov  8 23:41 1998 ./kld/cdev/test/testcdev.c
drwxr-xr-x rv/wheel          0 Nov  9 00:00 1998 ./kld/cdev/module/
-rw-r--r-- rv/wheel       2143 Nov  8 23:28 1998 ./kld/cdev/module/Makefile
-rw-r--r-- rv/wheel       3317 Nov  8 23:07 1998 ./kld/cdev/module/cdevmod.c
-rw-r--r-- rv/wheel       3387 Nov  8 23:46 1998 ./kld/cdev/module/cdev.c
-rw-r--r-- rv/wheel       2263 Nov  8 23:05 1998 ./kld/cdev/module/cdev.h
-rw-r--r-- rv/wheel       3207 Nov  8 22:44 1998 ./kld/cdev/README
-rw-r--r-- rv/wheel       1867 Nov  8 22:44 1998 ./kld/cdev/Makefile
drwxr-xr-x rv/wheel          0 Nov  8 23:49 1998 ./kld/misc/
drwxr-xr-x rv/wheel          0 Nov  9 00:00 1998 ./kld/misc/module/
-rw-r--r-- rv/wheel       2149 Nov  8 23:54 1998 ./kld/misc/module/Makefile
-rw-r--r-- rv/wheel       3021 Nov  8 23:58 1998 ./kld/misc/module/misccall.c
-rw-r--r-- rv/wheel       5417 Nov  9 00:00 1998 ./kld/misc/module/miscmod.c
-rw-r--r-- rv/wheel       1900 Nov  8 23:58 1998 ./kld/misc/module/misccall.h
drwxr-xr-x rv/wheel          0 Nov  9 00:00 1998 ./kld/misc/test/
-rw-r--r-- rv/wheel       2566 Nov  8 23:55 1998 ./kld/misc/test/Makefile
-rw-r--r-- rv/wheel       2254 Nov  8 23:57 1998 ./kld/misc/test/testmisc.c
-rw-r--r-- rv/wheel       1941 Nov  8 23:50 1998 ./kld/misc/Makefile
-rw-r--r-- rv/wheel       3235 Nov  8 23:49 1998 ./kld/misc/README
-rw-r--r-- rv/wheel       1914 Nov  8 23:52 1998 ./kld/Makefile
Comment 1 dfr freebsd_committer freebsd_triage 1998-12-11 10:46:33 UTC
State Changed
From-To: open->closed

Sample modules committed.