{"action":"opened","issue":{"url":"https://api.github.com/repos/hsyl20/ViperVM/issues/2","labels_url":"https://api.github.com/repos/hsyl20/ViperVM/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/hsyl20/ViperVM/issues/2/comments","events_url":"https://api.github.com/repos/hsyl20/ViperVM/issues/2/events","html_url":"https://github.com/hsyl20/ViperVM/issues/2","id":63988226,"number":2,"title":"opendev syscall","user":{"login":"hsyl20","id":96633,"avatar_url":"https://avatars.githubusercontent.com/u/96633?v=3","gravatar_id":"","url":"https://api.github.com/users/hsyl20","html_url":"https://github.com/hsyl20","followers_url":"https://api.github.com/users/hsyl20/followers","following_url":"https://api.github.com/users/hsyl20/following{/other_user}","gists_url":"https://api.github.com/users/hsyl20/gists{/gist_id}","starred_url":"https://api.github.com/users/hsyl20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsyl20/subscriptions","organizations_url":"https://api.github.com/users/hsyl20/orgs","repos_url":"https://api.github.com/users/hsyl20/repos","events_url":"https://api.github.com/users/hsyl20/events{/privacy}","received_events_url":"https://api.github.com/users/hsyl20/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hsyl20/ViperVM/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-24T12:52:51Z","updated_at":"2015-03-24T12:52:51Z","closed_at":null,"body":"To open a Linux device, currently we need to create a special device file (with the major and minor obtained from SysFS) with mknod, then to open it. It forces us to have some filesystem to create the nodes.\r\n\r\nWe don't need the file, we only want the file descriptor.  It would be better to have a opendev syscall that directly returns a file descriptor for a device. It could be implemented like memfd (i.e. a tmpfs in the kernel could be used to create device files and descriptors on unlinked files could be returned).\r\n\r\nAs a temporary fix, we can mount a tmpfs in userspace and do the same thing (mknod, open, unlink)."}}