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

jrj317的個(gè)人空間 http://www.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
返回頂部
主站蜘蛛池模板: 欧美成人看片黄a免费看 | 日韩欧美亚洲国产高清在线 | 亚洲一级毛片免费在线观看 | 韩国美女豪爽一级毛片 | 四虎在线视频免费观看视频 | a级黑粗大硬长爽 | 日本亚洲高清乱码中文在线观看 | 亚洲天堂中文字幕在线观看 | 免费一级毛片在线播放视频 | 成人精品国产亚洲欧洲 | 毛片网站免费在线观看 | 日韩欧美在线综合网高清 | 欧美aaaaaaaa | 国产精品久久久久9999小说 | 青青久草 | 久久这里只有精品66re99 | 欧美在线视频观看 | 99久久免费精品国产免费 | 婷婷综合影院 | 国产精品无 | 最近最新2019年中文字幕 | 黄页网站在线观看免费 | 国产精品高清全国免费观看 | 国产精品日韩欧美 | 99视频精品全部免费观看 | 国产永久福利 | 亚洲视频免费一区 | 亚洲国产成人久久精品app | 亚洲天堂视频在线观看免费 | 亚洲aaaa级特黄毛片 | 在线观看欧美国产 | 久久亚洲精品国产精品婷婷 | 青青热久久综合网伊人 | 插综合网 | 久久久久蜜桃 | 日本高清黄色网站 | 免费看91 | 欧美成人h版影片在线观看 欧美成人h版白雪公主 | 在线观看国产精品入口 | 日韩在线看片中文字幕不卡 | 伊人久久久综在合线久久在播 |