scsi-generic interface allows read and write access to SCSI Generic driver (sg) devices.
shared-memory(slot and plug):
apps: app: command: foo plugs: [scsi-generic]
The test code can be found in the snapd repository: https://github.com/snapcore/snapd/blob/master/interfaces/builtin/scsi_generic_test.go
The source code for the interface is in the snapd repository: https://github.com/snapcore/snapd/blob/master/interfaces/builtin/scsi_generic.go