Drive emulation at driver level

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite
1












I would like to emulate a virtual SED at driver level. The goal is to develop/simulate the "firmware" of a drive, and map driver interface commands to an app which would handle interface specific commands. The driver interface may be one of SCSI, ATA, NVME.



Any hint how to create such an ATA/SCSI/... device, and how to map accesses to a userland app (such as nbd, but at device interface level)?







share|improve this question





















  • The source code of SATA kernel driver sounds like the natural starting point. That's where I would look.
    – ajeh
    Jun 28 at 17:21














up vote
1
down vote

favorite
1












I would like to emulate a virtual SED at driver level. The goal is to develop/simulate the "firmware" of a drive, and map driver interface commands to an app which would handle interface specific commands. The driver interface may be one of SCSI, ATA, NVME.



Any hint how to create such an ATA/SCSI/... device, and how to map accesses to a userland app (such as nbd, but at device interface level)?







share|improve this question





















  • The source code of SATA kernel driver sounds like the natural starting point. That's where I would look.
    – ajeh
    Jun 28 at 17:21












up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





I would like to emulate a virtual SED at driver level. The goal is to develop/simulate the "firmware" of a drive, and map driver interface commands to an app which would handle interface specific commands. The driver interface may be one of SCSI, ATA, NVME.



Any hint how to create such an ATA/SCSI/... device, and how to map accesses to a userland app (such as nbd, but at device interface level)?







share|improve this question













I would like to emulate a virtual SED at driver level. The goal is to develop/simulate the "firmware" of a drive, and map driver interface commands to an app which would handle interface specific commands. The driver interface may be one of SCSI, ATA, NVME.



Any hint how to create such an ATA/SCSI/... device, and how to map accesses to a userland app (such as nbd, but at device interface level)?









share|improve this question












share|improve this question




share|improve this question








edited Jul 11 at 13:49
























asked Jun 28 at 10:45









A.B.

64




64











  • The source code of SATA kernel driver sounds like the natural starting point. That's where I would look.
    – ajeh
    Jun 28 at 17:21
















  • The source code of SATA kernel driver sounds like the natural starting point. That's where I would look.
    – ajeh
    Jun 28 at 17:21















The source code of SATA kernel driver sounds like the natural starting point. That's where I would look.
– ajeh
Jun 28 at 17:21




The source code of SATA kernel driver sounds like the natural starting point. That's where I would look.
– ajeh
Jun 28 at 17:21















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f452406%2fdrive-emulation-at-driver-level%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f452406%2fdrive-emulation-at-driver-level%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)