This shows you the differences between two versions of the page.
so2:laboratoare:lab07 [2018/04/16 16:31] theodor.stoican [Prelucrarea cererilor] |
so2:laboratoare:lab07 [2018/05/02 12:31] (current) theodor.stoican [Structura block_device_operations] |
||
---|---|---|---|
Line 253: | Line 253: | ||
} | } | ||
- | static int my_block_release(struct gendisk *gd, fmode_t mode) | + | static void my_block_release(struct gendisk *gd, fmode_t mode) |
{ | { | ||
//... | //... | ||
- | |||
- | return 0; | ||
} | } | ||
Line 506: | Line 504: | ||
static int my_xfer_bio(struct my_block_dev *dev, struct bio *bio) | static int my_xfer_bio(struct my_block_dev *dev, struct bio *bio) | ||
{ | { | ||
- | int i; | ||
struct bio_vec bvec; | struct bio_vec bvec; | ||
struct bvec_iter i; | struct bvec_iter i; |