diff options
Diffstat (limited to 'sys/cam/scsi/scsi_target.c')
-rw-r--r-- | sys/cam/scsi/scsi_target.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/sys/cam/scsi/scsi_target.c b/sys/cam/scsi/scsi_target.c index 4e95c06..de7e05c 100644 --- a/sys/cam/scsi/scsi_target.c +++ b/sys/cam/scsi/scsi_target.c @@ -105,20 +105,16 @@ static struct filterops targread_filtops = #define TARG_CDEV_MAJOR 65 static struct cdevsw targ_cdevsw = { - /* open */ targopen, - /* close */ targclose, - /* read */ targread, - /* write */ targwrite, - /* ioctl */ targioctl, - /* poll */ targpoll, - /* mmap */ nommap, - /* strategy */ nostrategy, - /* name */ "targ", - /* maj */ TARG_CDEV_MAJOR, - /* dump */ nodump, - /* psize */ nopsize, - /* flags */ D_KQFILTER, - /* kqfilter */ targkqfilter + .d_open = targopen, + .d_close = targclose, + .d_read = targread, + .d_write = targwrite, + .d_ioctl = targioctl, + .d_poll = targpoll, + .d_name = "targ", + .d_maj = TARG_CDEV_MAJOR, + .d_flags = D_KQFILTER, + .d_kqfilter = targkqfilter }; static cam_status targendislun(struct cam_path *path, int enable, |