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

jrj317的個人空間 http://www.qingdxww.cn/space-uid-9104.html [收藏] [復制] [RSS]

博客

kcopyd

已有 1800 次閱讀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);
 

路過

雞蛋

鮮花

握手

雷人

評論 (0 個評論)

facelist

您需要登錄后才可以評論 登錄 | 立即注冊

關于我們  -  服務條款  -  使用指南  -  站點地圖  -  友情鏈接  -  聯系我們
電子工程網 © 版權所有   京ICP備16069177號 | 京公網安備11010502021702
返回頂部
主站蜘蛛池模板: 国产福利第一页 | 丁香六月 久久久 | 日韩专区第一页 | 日本大片在线 | 理论亚洲区美一区二区三区 | 三级四级特黄在线观看 | 99re2| 欧美资源网 | 香蕉成人在线视频 | 天天干天天操天天玩 | 99精品99 | 一级做a爰性色毛片 | 九色视屏 | 非洲黑人高清一级毛片 | 国产高清一级在线观看 | 国产成人手机在线 | 91精品国产吴梦梦在线观看永久 | 亚洲人的天堂男人爽爽爽 | 99热国产这里只有精品99 | 99热最新网站地址获取 | 本道久久综合88全国最大色 | 四虎在线精品免费高清在线 | 女人张开腿让男人桶免费最新 | 天堂网在线www资源网 | 精品欧美成人bd高清在线观看 | 青青国产精品视频 | 久久久久久毛片免费播放 | 四虎国产| 国产一区二区三区在线免费 | 四虎在线最新永久免费播放 | 免费观看欧美一区二区三区 | 国产啪精品视频网给免丝袜 | 国产在线视频在线观看 | 成人精品视频在线观看 | 91麻豆精品国产综合久久久 | 国产成人精品男人的天堂下载 | 99v视频国产在线观看免费 | 国产99在线视频 | 亚洲女同在线 | 成人免费男女视频网站慢动作 | 韩国免费人成在线观看网站 |