Use MD_NAME and MDCTL_NAME constants where appropriate.
This commit is contained in:
parent
e3608b7813
commit
10b0e058bb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79863
@ -282,9 +282,10 @@ mdmaybeload(void)
|
|||||||
{
|
{
|
||||||
struct module_stat mstat;
|
struct module_stat mstat;
|
||||||
int fileid, modid;
|
int fileid, modid;
|
||||||
const char *name = "md";
|
const char *name;
|
||||||
char *cp;
|
char *cp;
|
||||||
|
|
||||||
|
name = MD_NAME;
|
||||||
/* scan files in kernel */
|
/* scan files in kernel */
|
||||||
mstat.version = sizeof(struct module_stat);
|
mstat.version = sizeof(struct module_stat);
|
||||||
for (fileid = kldnext(0); fileid > 0; fileid = kldnext(fileid)) {
|
for (fileid = kldnext(0); fileid > 0; fileid = kldnext(fileid)) {
|
||||||
|
@ -898,7 +898,8 @@ md_drvinit(void *unused)
|
|||||||
mdunits, name, len, ptr);
|
mdunits, name, len, ptr);
|
||||||
md_preloaded(ptr, len);
|
md_preloaded(ptr, len);
|
||||||
}
|
}
|
||||||
status_dev = make_dev(&mdctl_cdevsw, 0xffff00ff, UID_ROOT, GID_WHEEL, 0600, "mdctl");
|
status_dev = make_dev(&mdctl_cdevsw, 0xffff00ff, UID_ROOT, GID_WHEEL,
|
||||||
|
0600, MDCTL_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -922,7 +923,7 @@ md_modevent(module_t mod, int type, void *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static moduledata_t md_mod = {
|
static moduledata_t md_mod = {
|
||||||
"md",
|
MD_NAME,
|
||||||
md_modevent,
|
md_modevent,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user