naota / abuse-kmod Goto Github PK
View Code? Open in Web Editor NEWABUSE: user space block device driver
License: Other
ABUSE: user space block device driver
License: Other
Hi naota!
This project is originated from ABUSE and later updated by you to use mq. Great work.
I tried to understand the code but I can't see how this module transfers write data to the userland.
In write, the user firstly GET request from the req_list
. The write data has to be copied at this moment but there is no code in abuse_get_req
to copy the bv_page
from the internal request.
Somehow, the code exists in abuse_put_req
but this function should be called when caller returns the result of write after doing some work in the userland.
if (rq_data_dir(req->rq) != WRITE)
ret = copy_from_user(kaddr + bvec.bv_offset,
(void __user *)ab->ab_xfer[i].ab_address,
bvec.bv_len);
else // what does this branch mean?
ret = copy_to_user((void __user *)ab->ab_xfer[i].ab_address,
kaddr + bvec.bv_offset, bvec.bv_len)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.