Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys



In article <20160726014949.33644FBBD%cvs.NetBSD.org@localhost>,
Paul Goyette <source-changes-d%NetBSD.org@localhost> wrote:
>-=-=-=-=-=-
>
>Module Name:	src
>Committed By:	pgoyette
>Date:		Tue Jul 26 01:49:49 UTC 2016
>
>Modified Files:
>	src/sys/dev: vnd.c
>	src/sys/rump/dev/lib/libvnd: vnd_component.c
>
>Log Message:
>When calling devsw_attach() we need to use the expected/official driver
>name (as listed in the devsw_conv[] table) to get the expected device
>majors.  Once rump initialization is finished (ie, it has created its
>required device nodes), we need to detach the [bc]devsw so the module
>initialization code doesn't get EEXIST.

Looks like this code is going to be duplicated a lot (it is already
in cgd). Why don't you factor it out to a utility function?

christos



Home | Main Index | Thread Index | Old Index