1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-26 07:55:01 +00:00

Rename ns notification function...

This function is called whenever the namespace is added, deleted or
changes. Update the name to reflect that. No functional change.
This commit is contained in:
Warner Losh 2020-05-01 21:24:15 +00:00
parent e2d6a6e938
commit 950475ca20
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360549

View File

@ -315,7 +315,7 @@ nvme_sim_new_controller(struct nvme_controller *ctrlr)
}
static void *
nvme_sim_new_ns(struct nvme_namespace *ns, void *sc_arg)
nvme_sim_ns_change(struct nvme_namespace *ns, void *sc_arg)
{
struct nvme_sim_softc *sc = sc_arg;
union ccb *ccb;
@ -339,7 +339,7 @@ nvme_sim_new_ns(struct nvme_namespace *ns, void *sc_arg)
}
xpt_rescan(ccb);
return (ns);
return (sc_arg);
}
static void
@ -362,7 +362,7 @@ nvme_sim_init(void)
if (nvme_use_nvd)
return;
consumer_cookie = nvme_register_consumer(nvme_sim_new_ns,
consumer_cookie = nvme_register_consumer(nvme_sim_ns_change,
nvme_sim_new_controller, NULL, nvme_sim_controller_fail);
}