diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-03-03 12:15:54 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-03-03 12:15:54 +0000 |
| commit | 7ac40f5f59dea6e9ab4869e974bdd4026274e921 (patch) | |
| tree | 4e91d5779ffebe1d75e975aa4450f35f965430eb /sys/opencrypto/cryptodev.c | |
| parent | 03f5c0014428be25ffe752865c2a06b1c2cd9347 (diff) | |
Notes
Diffstat (limited to 'sys/opencrypto/cryptodev.c')
| -rw-r--r-- | sys/opencrypto/cryptodev.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/sys/opencrypto/cryptodev.c b/sys/opencrypto/cryptodev.c index d8487f4b1bde..a40c85975397 100644 --- a/sys/opencrypto/cryptodev.c +++ b/sys/opencrypto/cryptodev.c @@ -747,20 +747,13 @@ cryptoioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td) #define CRYPTO_MAJOR 70 /* from openbsd */ static struct cdevsw crypto_cdevsw = { - /* open */ cryptoopen, - /* close */ nullclose, - /* read */ cryptoread, - /* write */ cryptowrite, - /* ioctl */ cryptoioctl, - /* poll */ nopoll, - /* mmap */ nommap, - /* strategy */ nostrategy, - /* dev name */ "crypto", - /* dev major */ CRYPTO_MAJOR, - /* dump */ nodump, - /* psize */ nopsize, - /* flags */ 0, - /* kqfilter */ NULL + .d_open = cryptoopen, + .d_close = nullclose, + .d_read = cryptoread, + .d_write = cryptowrite, + .d_ioctl = cryptoioctl, + .d_name = "crypto", + .d_maj = CRYPTO_MAJOR, }; static dev_t crypto_dev; |
