virtio_random.c (260847) | virtio_random.c (268933) |
---|---|
1/*- 2 * Copyright (c) 2013, Bryan Venteicher <bryanv@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27/* Driver for VirtIO entropy device. */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2013, Bryan Venteicher <bryanv@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27/* Driver for VirtIO entropy device. */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/dev/virtio/random/virtio_random.c 260847 2014-01-18 06:14:38Z bryanv $"); | 30__FBSDID("$FreeBSD: stable/10/sys/dev/virtio/random/virtio_random.c 268933 2014-07-21 00:21:56Z jhb $"); |
31 32#include <sys/param.h> 33#include <sys/kernel.h> 34#include <sys/module.h> 35#include <sys/sglist.h> 36#include <sys/callout.h> 37#include <sys/random.h> 38 --- 112 unchanged lines hidden (view full) --- 151 152static int 153vtrnd_detach(device_t dev) 154{ 155 struct vtrnd_softc *sc; 156 157 sc = device_get_softc(dev); 158 | 31 32#include <sys/param.h> 33#include <sys/kernel.h> 34#include <sys/module.h> 35#include <sys/sglist.h> 36#include <sys/callout.h> 37#include <sys/random.h> 38 --- 112 unchanged lines hidden (view full) --- 151 152static int 153vtrnd_detach(device_t dev) 154{ 155 struct vtrnd_softc *sc; 156 157 sc = device_get_softc(dev); 158 |
159 callout_stop(&sc->vtrnd_callout); | 159 callout_drain(&sc->vtrnd_callout); |
160 161 return (0); 162} 163 164static void 165vtrnd_negotiate_features(struct vtrnd_softc *sc) 166{ 167 device_t dev; --- 64 unchanged lines hidden --- | 160 161 return (0); 162} 163 164static void 165vtrnd_negotiate_features(struct vtrnd_softc *sc) 166{ 167 device_t dev; --- 64 unchanged lines hidden --- |