version 1.15, 2022/03/19 11:37:06 |
version 1.16, 2022/03/19 16:20:45 |
Line 139 viornd_attach(device_t parent, device_t |
|
Line 139 viornd_attach(device_t parent, device_t |
|
sc->sc_dev = self; |
sc->sc_dev = self; |
sc->sc_virtio = vsc; |
sc->sc_virtio = vsc; |
|
|
mutex_init(&sc->sc_mutex, MUTEX_DEFAULT, IPL_SOFTSERIAL); |
mutex_init(&sc->sc_mutex, MUTEX_DEFAULT, IPL_VM); |
|
|
error = bus_dmamem_alloc(virtio_dmat(vsc), |
error = bus_dmamem_alloc(virtio_dmat(vsc), |
VIRTIO_PAGE_SIZE, 0, 0, segs, 1, &nsegs, |
VIRTIO_PAGE_SIZE, 0, 0, segs, 1, &nsegs, |