国产毛片a精品毛-国产毛片黄片-国产毛片久久国产-国产毛片久久精品-青娱乐极品在线-青娱乐精品

jrj317的個(gè)人空間 http://m.qingdxww.cn/space-uid-9104.html [收藏] [復(fù)制] [RSS]

博客

kcopyd

已有 1741 次閱讀2011-4-10 08:15

kcopyd
======
Kcopyd provides the ability to copy a range of sectors from one block-device
to one or more other block-devices, with an asynchronous completion
notification. It is used by dm-snapshot and dm-mirror.
Users of kcopyd must first create a client and indicate how many memory pages
to set aside for their copy jobs. This is done with a call to
kcopyd_client_create().
   int kcopyd_client_create(unsigned int num_pages,
                            struct kcopyd_client **result);
To start a copy job, the user must set up io_region structures to describe
the source and destinations of the copy. Each io_region indicates a
block-device along with the starting sector and size of the region. The source
of the copy is given as one io_region structure, and the destinations of the
copy are given as an array of io_region structures.
   struct io_region {
      struct block_device *bdev;
      sector_t sector;
      sector_t count;
   };
To start the copy, the user calls kcopyd_copy(), passing in the client
pointer, pointers to the source and destination io_regions, the name of a
completion callback routine, and a pointer to some context data for the copy.
   int kcopyd_copy(struct kcopyd_client *kc, struct io_region *from,
                   unsigned int num_dests, struct io_region *dests,
                   unsigned int flags, kcopyd_notify_fn fn, void *context);
   typedef void (*kcopyd_notify_fn)(int read_err, unsigned int write_err,
        void *context);
When the copy completes, kcopyd will call the user's completion routine,
passing back the user's context pointer. It will also indicate if a read or
write error occurred during the copy.
When a user is done with all their copy jobs, they should call
kcopyd_client_destroy() to delete the kcopyd client, which will release the
associated memory pages.
   void kcopyd_client_destroy(struct kcopyd_client *kc);
 

路過(guò)

雞蛋

鮮花

握手

雷人

評(píng)論 (0 個(gè)評(píng)論)

facelist

您需要登錄后才可以評(píng)論 登錄 | 立即注冊(cè)

關(guān)于我們  -  服務(wù)條款  -  使用指南  -  站點(diǎn)地圖  -  友情鏈接  -  聯(lián)系我們
電子工程網(wǎng) © 版權(quán)所有   京ICP備16069177號(hào) | 京公網(wǎng)安備11010502021702
返回頂部
主站蜘蛛池模板: 午夜影院一区二区三区 | 国产拍自| 免费啪视频一区二区三区 | 亚洲日本一区二区三区在线不卡 | 欧美日韩第一页 | 九九热在线视频观看 | 午夜精品一区二区三区在线视 | 午夜向日葵在线视频观看下载 | 日日干天天操 | 国产欧美日韩高清专区手机版 | 久久精品成人国产午夜 | 国产精品一区二区av | 久久久久综合给合狠狠狠 | 91中文字幕yellow字幕网 | 香蕉在线精品视频在线观看2 | 在线观看成年美女黄网色视频 | 久久免费观看国产99精品 | 亚洲骚色 | 国产精品v欧美精品v日韩 | 亚洲一区中文字幕在线观看 | 亚洲精品不卡久久久久久 | 精品日本一区二区三区在线观看 | 色视频网站在线观看 | 97在线视频免费公开观看 | 992tv国产精品福利在线 | 成人黄色一级视频 | 一区二区不卡在线观看 | 一区二区三区四区在线免费观看 | 91青青草视频 | 99久久精品免费视频 | 91极品在线观看 | 四虎精品成在线播放 | 亚洲网站视频在线观看 | 成年人黄色网址 | 一区二区免费在线观看 | 日韩国产中文字幕 | 免费a在线 | 在线看欧美三级中文经典 | 99r精品在线| 欧美黄色一级片免费看 | 手机看片国产精品 |