The NetBSD Project

CVS log for src/sys/dev/dctl/Attic/dctl.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / dctl

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.1.6.5
Thu Apr 3 11:14:48 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
FILE REMOVED
Changes since revision 1.1.6.4: +2 -2 lines
Rename the dctl psuedo-device to devfsctl after discussion on tech-kern.

If you are running a devfs-enabled kernel, please update your config to
use devfsctl instead of dctl.

Revision 1.1.6.4: download - view: text, markup, annotated - select for diffs
Sat Mar 29 16:17:57 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.1.6.3: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.6.3: +5 -5 lines
- etc/devfsd.conf: Add some rules to give nodes like /dev/tty and
  		   /dev/null better default modes, i.e. 0666.

- sbin/init: Run devfsd -s before going to multiuser.

- sys/arch: Provide arm32, i386, sparc with a mem_init() function to request
  	    device nodes for /dev/null, /dev/zero, etc.

- sys/dev: Convert rnd, wd, agp, raid, cd, sd, wsdisplay, wskbd, wsmouse,
	   wsmux, tty, bpf, swap to devfs New World Order.

- sys/fs/devfs: Make the visibility attribute of device nodes configurable.
	        Also provide a function to mount a devfs on boot.

- sys/kern: Add a new boot flag, -n. This disables devfs support. Unless
	    the -n flag is specified the kernel will mount a devfs file
	    system on boot.

Revision 1.1.6.3: download - view: text, markup, annotated - select for diffs
Fri Mar 21 19:13:36 2008 UTC (18 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.1.6.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.6.2: +57 -8 lines
DCTL_NEW_MOUNT events are also placed onto a separate "mount event" list.
They are removed from this list when a DCTL_UNMOUNT event for the
corresponding mount gets sent to dctl(4).

This allows devfsd(8) to always know about devfs mounts on a system,
even if one was mounted whilst devfsd was not running.

Revision 1.1.6.2: download - view: text, markup, annotated - select for diffs
Thu Mar 20 12:26:12 2008 UTC (18 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.1.6.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.6.1: +147 -48 lines
dctl:
- Make dctl see aware of device driver names being added and removed so
  that it can signal devfsd(8), which in turn will request device node
  creation of deletion from a particular devfs mount.

- Each device that registers the need for a device node also passes on
  some info about what sort of device they are. We now package this up
  in the dctl messaging framework to let devfsd(8) know.

- Use a dev_t for the cookie for each device that dctl(4) knows about. This
  was changed from a device_t because some devices (zero(4)) don't have
  corresponding device_t's.

- dctl mount functions have grown a visibility argument which specifies
  the default visibility for that mount.

- Since we want to get information about devices (for matching against
  rules) through ioctl calls to match against rules, but for userland
  to ioctl they need device nodes, dctl provides an "inner" ioctl function
  that calls the ioctl function of the device driver directly.

devfsd:
- Run in the background.

- Convert all output to use syslog(3).

- When devices are removed request the corresponding device node be
  removed from every devfs mount.

- Start using the dctl "innerioctl" facility to get information about
  devices which will be useful for matching. We're only handling disk
  devices, and can only grok information about a partition's file system
  type at the moment.

- Fix code that handles rules that specify filenames.

- Specifying visibility for device nodes now works.

mount_devfs:
- Catch up with devfs changes. Provide an -f option which means that the
  devfs can only be unmounted it if it forced.

- Provide -i option to specify that the default visibility for a mount
  should be invisible. This means device nodes are not visible in the
  devfs mount by default, rather they must have a rule for devfsd that
  specifies that they should be visible.

- Provide -v option that specifies a devfs mount should be visible.
  This is the default.

- Update man page to reflect these changes.

etc/defaults/rc.conf:
- Turn devfsd off by default.


Device nodes can now be dynamically created and removed from a device file
system.

Revision 1.1.6.1: download - view: text, markup, annotated - select for diffs
Thu Feb 21 20:44:55 2008 UTC (18 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +557 -0 lines
Start where the mjf-devfs branch left off.

Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 22:07:02 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +557 -0 lines
Add some devfs code that's been sitting in my local tree for a while.

devfsd(8) is now the first daemon to be started after init(8). It tracks
device insertion (will eventually track removal) and devfs mounts.

Currently, we can mount multiple device file systems and have device
special files pushed into the mounts automatically, though, the device
special files aren't created with the correct major/minor number pairs
yet.

More work to come soon.

Revision 1.1
Mon Feb 18 22:07:02 2008 UTC (18 years, 9 months ago) by mjf
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, yamt-nfs-mp-base11, yamt-nfs-mp-base10, yamt-nfs-mp-base, yamt-nfs-mp, yamt-lazymbuf-base15, yamt-lazymbuf-base14, uebayasi-xip-base2, uebayasi-xip-base, uebayasi-xip, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, thorpej-futex-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, localcount-20160914, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, isaki-audio2-base, isaki-audio2, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver, ad-socklock-base1, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache, ad-audiomp2-base, ad-audiomp2, HEAD
Branch point for: mjf-devfs2, mjf-devfs
FILE REMOVED
file dctl.c was initially added on branch mjf-devfs.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>