diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-12-08 20:38:11 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-12-08 20:38:11 +0000 |
commit | 419bf31162b38c0ade15af000eb27d0d87ba7357 (patch) | |
tree | dacc34bb012a540f8bd4cd3544764490831b73b7 /sys/arch/sparc64/include | |
parent | d5bcffb4c84df8eca5b7df26fdcf5fadf0078945 (diff) |
Make ldomd(8) to control the availability of virtual disks to guest domains.
This is done by opening the corresponding /dev/vdspN device file. The virtual
disk will remain available until that device is closed, which happens
automatically when ldomd(8) exits.
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r-- | sys/arch/sparc64/include/conf.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/arch/sparc64/include/conf.h b/sys/arch/sparc64/include/conf.h index cca4a5bb9fd..cbf5d889a22 100644 --- a/sys/arch/sparc64/include/conf.h +++ b/sys/arch/sparc64/include/conf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.h,v 1.23 2012/10/17 11:52:22 kettenis Exp $ */ +/* $OpenBSD: conf.h,v 1.24 2012/12/08 20:38:10 kettenis Exp $ */ /* $NetBSD: conf.h,v 1.9 2001/03/26 12:33:26 lukem Exp $ */ /*- @@ -52,6 +52,15 @@ cdev_decl(uperf); (dev_type_stop((*))) nullop, 0, selfalse, \ (dev_type_mmap((*))) enodev } +cdev_decl(vdsp); + +/* open, close, ioctl */ +#define cdev_vdsp_init(c,n) { \ + dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \ + (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \ + (dev_type_stop((*))) nullop, 0, selfalse, \ + (dev_type_mmap((*))) enodev } + #define cdev_gen_init(c,n) { \ dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \ dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) nullop, \ |