*参照元 [#hb909383]
#backlinks

*説明 [#n7c1bfc0]
-パス: [[linux-2.6.25/linux-2.6.25/mm/bounce.c]]

-FIXME: これは何?
--説明


**引数 [#q2201762]
-struct request_queue *q
--
-struct bio **bio_orig
--
-mempool_t *pool
--

**返り値 [#m00afb66]
-なし

**参考 [#yb91ccef]


*実装 [#ydc6bd75]
 static void __blk_queue_bounce(struct request_queue *q, struct bio **bio_orig,
                                mempool_t *pool)
 {
         struct page *page;
         struct bio *bio = NULL;
         int i, rw = bio_data_dir(*bio_orig);
         struct bio_vec *to, *from;
-
--[[linux-2.6.25/page]]
--[[linux-2.6.25/bio]]
--[[linux-2.6.25/bio_vec]]
--[[linux-2.6.25/bio_data_dir()]]

         bio_for_each_segment(from, *bio_orig, i) {
                 page = from->bv_page;
-
--[[linux-2.6.25/bio_for_each_segment()]]

                 /*
                  * is destination page below bounce pfn?
                  */
                 if (page_to_pfn(page) <= q->bounce_pfn)
                         continue;
-
--[[linux-2.6.25/page_to_pfn()]]

                 /*
                  * irk, bounce it
                  */
                 if (!bio)
                         bio = bio_alloc(GFP_NOIO, (*bio_orig)->bi_vcnt);
-
--[[linux-2.6.25/bio_alloc()]]

                 to = bio->bi_io_vec + i;
 
                 to->bv_page = mempool_alloc(pool, q->bounce_gfp);
                 to->bv_len = from->bv_len;
                 to->bv_offset = from->bv_offset;
                 inc_zone_page_state(to->bv_page, NR_BOUNCE);
-
--[[linux-2.6.25/mempool_alloc()]]
--[[linux-2.6.25/inc_zone_page_state()]]

                 if (rw == WRITE) {
                         char *vto, *vfrom;
 
                         flush_dcache_page(from->bv_page);
                         vto = page_address(to->bv_page) + to->bv_offset;
                         vfrom = kmap(from->bv_page) + from->bv_offset;
                         memcpy(vto, vfrom, to->bv_len);
                         kunmap(from->bv_page);
-
--[[linux-2.6.25/flush_dcache_page()]]
--[[linux-2.6.25/page_address()]]
--[[linux-2.6.25/kmap()]]
--[[linux-2.6.25/memcpy()]]
--[[linux-2.6.25/kunmap()]]

                 }
         }
 
         /*
          * no pages bounced
          */
         if (!bio)
                 return;
 
         blk_add_trace_bio(q, *bio_orig, BLK_TA_BOUNCE);
-
--[[linux-2.6.25/blk_add_trace_bio()]]

         /*
          * at least one page was bounced, fill in possible non-highmem
          * pages
          */
         __bio_for_each_segment(from, *bio_orig, i, 0) {
-
--[[linux-2.6.25/__bio_for_each_segment()]]

                 to = bio_iovec_idx(bio, i);
                 if (!to->bv_page) {
                         to->bv_page = from->bv_page;
                         to->bv_len = from->bv_len;
                         to->bv_offset = from->bv_offset;
                 }
-
--[[linux-2.6.25/bio_iovec_idx()]]

         }
 
         bio->bi_bdev = (*bio_orig)->bi_bdev;
         bio->bi_flags |= (1 << BIO_BOUNCED);
         bio->bi_sector = (*bio_orig)->bi_sector;
         bio->bi_rw = (*bio_orig)->bi_rw;
 
         bio->bi_vcnt = (*bio_orig)->bi_vcnt;
         bio->bi_idx = (*bio_orig)->bi_idx;
         bio->bi_size = (*bio_orig)->bi_size;
 
         if (pool == page_pool) {
                 bio->bi_end_io = bounce_end_io_write;
                 if (rw == READ)
                         bio->bi_end_io = bounce_end_io_read;
         } else {
                 bio->bi_end_io = bounce_end_io_write_isa;
                 if (rw == READ)
                         bio->bi_end_io = bounce_end_io_read_isa;
         }
 
         bio->bi_private = *bio_orig;
         *bio_orig = bio;
 }

*コメント [#n2353ac7]
- 2sPDVa  <a href="http://ycaqrpoqjcrl.com/">ycaqrpoqjcrl</a>, [url=http://yqgocrjplvgt.com/]yqgocrjplvgt[/url], [link=http://eoyxspjwvuzs.com/]eoyxspjwvuzs[/link], http://gcqxbiurelsq.com/ -- [[crxmwpje]] &new{2010-03-17 (水) 00:39:41};
- http://www.findtheneedle.co.uk/jobs/1830-bioinformatics-analyst-40plan43541.asp viagra   ?袵????袵??  http://www.armenian.com/cgi-bin/links.cgi?searchstring=viagra%20store viagra   袤?袢袢袢?袤袪袤袨袤袤  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cialis%20pills cialis   =-OOO  http://www.armenian.com/cgi-bin/links.cgi?searchstring=noprescription%20cialis cialis   :-)))   -- [[Kqkegztq]] &new{2010-03-18 (木) 20:27:31};
- http://www.stlouisbusinesslist.com/business/5021837.htm?info=viagra viagra   ??袤????  http://www.stlouisbusinesslist.com/category/business.asp?uid=5021837&function=interview viagra   袨??袤袤???袤  http://www.uk-local-search.co.uk/business/buy+viagra+cheap+generic/1851115/ viagra   8)  http://www.armenian.com/cgi-bin/links.cgi?searchstring=viagra%20store viagra   ?袪袤???   -- [[Syquxoko]] &new{2010-03-19 (金) 12:08:59};
- http://www.stlouisbusinesslist.com/business/5021837.htm?info=viagra viagra   袢??袢袢??袪?  http://www.hotfrog.ca/Companies/Canadian-viagra-distributions/Cheap-viagra-20520 viagra   袺袱袰?  http://www.ratemds.com/filecache/doctor-ratings.jsp?did=957857&option=cialis#1 cialis   =-DD  http://www.jobzilla.ca/details/company/2507/search/?opt=viagra viagra   =-]]   -- [[Gqavtsqf]] &new{2010-03-19 (金) 12:09:04};
- http://www.ratemds.com/filecache/doctor-ratings.jsp?did=957853&option=viagra#1 viagra   袷??  http://www.findtheneedle.co.uk/press-releases/21984-viagra-coupon-for-findtheneedle-users.asp viagra   袪?袤?袪袤??袪   -- [[Potyffjb]] &new{2010-03-19 (金) 12:09:10};
- http://www.findtheneedle.co.uk/company-telephone.asp?telephone=4438443434 canadian pharmacy   8[  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cheap%20cialis cialis   %O  http://www.ratemds.com/filecache/doctor-ratings.jsp?did=957853&option=viagra viagra   ?袤袪  http://www.uk-local-search.co.uk/search.aspx?q=royal%20viagra viagra   ?袨袢??被??????   -- [[Zczjyjhw]] &new{2010-03-19 (金) 12:09:12};
- http://www.stlouisbusinesslist.com/category/business.asp?uid=5021837&function=interview viagra   袪袨??袤?袨?  http://www.ratemds.com/doctor-ratings/957853/NY/New-York/Lousanne?tag=viagra viagra   ??????袪?袨   -- [[Kftselru]] &new{2010-03-19 (金) 12:09:17};
- http://www.armenian.com/cgi-bin/links.cgi?searchstring=cheap%20viagra viagra   >:)))  http://www.findtheneedle.co.uk/company-telephone.asp?telephone=4438443434 canadian pharmacy   ?袢袤???袢袤?   -- [[Ykxitmme]] &new{2010-03-19 (金) 12:09:19};
- http://www.armenian.com/cgi-bin/links.cgi?searchstring=viagra viagra   :-[  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cheap%20viagra viagra   ?????袪???袨袢  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cheap%20cialis cialis   %))  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cialis%20pills cialis   =-)   -- [[Bxxruhxt]] &new{2010-03-19 (金) 12:09:21};
- http://www.hotfrog.ca/Companies/Canadian-viagra-distributions viagra   袢?????  http://www.stlouisbusinesslist.com/business/5021837.htm?info=viagra viagra   ??袰?   -- [[Jqeqmskq]] &new{2010-03-19 (金) 12:09:24};
- http://www.armenian.com/cgi-bin/links.cgi?searchstring=viagra viagra   ?袵?  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cheap%20cialis cialis   :-(((  http://www.armenian.com/cgi-bin/links.cgi?searchstring=generic%20cialis cialis   袪??袨   -- [[Nycjwsek]] &new{2010-03-19 (金) 12:09:27};
- http://www.findtheneedle.co.uk/jobs/1830-bioinformatics-analyst-40plan43541.asp viagra   >:-)))  http://www.jobzilla.ca/details/company/2507/search/?opt=viagra viagra   ?????袨??袢  http://www.armenian.com/cgi-bin/links.cgi?searchstring=noprescription%20cialis cialis   ???袪???袤?袢   -- [[Fflsqukw]] &new{2010-03-19 (金) 12:09:30};
- http://www.hotfrog.ca/Companies/Canadian-viagra-distributions viagra   袨袢?袨?  http://www.findtheneedle.co.uk/press-releases/21984-viagra-coupon-for-findtheneedle-users.asp viagra   8-)  http://www.stlouisbusinesslist.com/category/business.asp?uid=5021837&function=interview viagra   ????袨袤袢  http://www.findtheneedle.co.uk/company-postcode.asp?postcode=K1G canadian viagra   袴?????袵袴   -- [[Ucqjwwoa]] &new{2010-03-20 (土) 03:59:12};
- http://www.findtheneedle.co.uk/companies/128701-canadian-healthcare-center.asp viagra   袢???袢???袨  http://www.armenian.com/cgi-bin/links.cgi?searchstring=viagra%20store viagra   :]]]  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cialis%20store cialis   ??袢袺??袴被?袨   -- [[Yzsdqtox]] &new{2010-03-20 (土) 04:00:07};
- http://www.ratemds.com/filecache/doctor-ratings.jsp?did=957857&option=cialis cialis   ?袤????袢  http://www.findtheneedle.co.uk/companies/128701-canadian-healthcare-center.asp viagra   ?袪袪袢?袢袨袨  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cialis%20store cialis   :-))  http://www.ratemds.com/doctor-ratings/957853/NY/New-York/Lousanne?tag=viagra viagra   ?袨??袨???   -- [[Pdmtxxae]] &new{2010-03-20 (土) 04:00:13};
- http://www.findtheneedle.co.uk/company-telephone.asp?telephone=4438443434 viagra   8-(((  http://www.stlouisbusinesslist.com/business/5021837.htm?info=viagra viagra   ??袪袴  http://www.uk-local-search.co.uk/business/buy+viagra+cheap+generic/1851115/ viagra   ?袢??袪袷袴?   -- [[Tkbuedau]] &new{2010-03-20 (土) 04:00:19};
- http://www.hotfrog.ca/Companies/Canadian-viagra-distributions viagra   %-]  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cheap%20viagra viagra   :-OO   -- [[Ftwwxuhb]] &new{2010-03-20 (土) 04:00:24};
- http://www.ratemds.com/filecache/doctor-ratings.jsp?did=957853&option=viagra viagra   8(((  http://www.uk-local-search.co.uk/business/buy+viagra+cheap+generic/1851115/ viagra   ????袤  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cialis%20store cialis   ??被??   -- [[Xcgeaeup]] &new{2010-03-20 (土) 04:00:33};
- http://www.ratemds.com/filecache/doctor-ratings.jsp?did=957853&option=viagra#1 viagra   ???袺?????袪袴  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cialis%20pills cialis   袨?袪袪???   -- [[Dcgtogpc]] &new{2010-03-20 (土) 04:00:42};
- http://www.stlouisbusinesslist.com/business/5021837.htm?info=viagra viagra   ??袵?  http://www.armenian.com/cgi-bin/links.cgi?searchstring=viagra%20store viagra   被袺袷袨??   -- [[Gcevbhyq]] &new{2010-03-20 (土) 04:00:48};
- http://www.findtheneedle.co.uk/press-releases/21984-viagra-coupon-for-findtheneedle-users.asp viagra   袪????袪??  http://www.armenian.com/cgi-bin/links.cgi?searchstring=buy%20viagra viagra   8O  http://www.findtheneedle.co.uk/products/2700385-buy-cheap-viagra-pack.asp viagra   :-PP  http://www.ratemds.com/doctor-ratings/957853/NY/New-York/Lousanne?tag=viagra viagra   >:-[   -- [[Shhoanub]] &new{2010-03-20 (土) 04:01:01};
- http://www.ratemds.com/doctor-ratings/957857/LA/Los-Angeles/Adacialisoli?tag=cialis cialis   袪?袤袨袤袤袪  http://www.findtheneedle.co.uk/jobs/1830-bioinformatics-analyst-40plan43541.asp viagra   袤?袤  http://www.armenian.com/cgi-bin/links.cgi?searchstring=viagra%20store viagra   =OO   -- [[Lodvzihf]] &new{2010-03-20 (土) 04:01:32};
- http://www.ratemds.com/filecache/doctor-ratings.jsp?did=957853&option=viagra#1 viagra   ??袤袢?袢??袨??  http://www.jobzilla.ca/details/company/2507/search/?opt=viagra viagra   ???袴  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cialis%20pills cialis   =]]]  http://www.armenian.com/cgi-bin/links.cgi?searchstring=noprescription%20cialis cialis   >:-]]]   -- [[Uzesrozk]] &new{2010-03-20 (土) 19:38:59};
- http://www.armenian.com/cgi-bin/links.cgi?searchstring=viagra viagra   ??袱?袷袴?袮?  http://www.armenian.com/cgi-bin/links.cgi?searchstring=buy%20viagra viagra   8-[  http://www.ratemds.com/doctor-ratings/957853/NY/New-York/Lousanne?tag=viagra viagra   >:-(   -- [[Odrsegqx]] &new{2010-03-20 (土) 19:39:15};
- http://www.findtheneedle.co.uk/companies/128701-canadian-healthcare-center.asp viagra   袪??  http://www.findtheneedle.co.uk/press-releases/21984-viagra-coupon-for-findtheneedle-users.asp viagra   ?袨??????袪  http://www.findtheneedle.co.uk/products/2700385-buy-cheap-viagra-pack.asp viagra   ?袨??袨  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cialis%20store cialis   ??袰袺?袪?被   -- [[Udnioyhf]] &new{2010-03-20 (土) 19:39:29};
- http://www.ratemds.com/filecache/doctor-ratings.jsp?did=957853&option=viagra#1 viagra   ?袤?袺袤袷?袪袤?  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cheap%20cialis cialis   袺?袰袰??  http://www.ratemds.com/filecache/doctor-ratings.jsp?did=957857&option=cialis#1 cialis   ???袪  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cialis%20pills cialis   ??袮袰袰?袺袰?   -- [[Nidfdfav]] &new{2010-03-20 (土) 19:39:49};
- http://www.ratemds.com/doctor-ratings/957857/LA/Los-Angeles/Adacialisoli?tag=cialis cialis   8O  http://www.findtheneedle.co.uk/jobs/1830-bioinformatics-analyst-40plan43541.asp viagra   ?袪?  http://www.uk-local-search.co.uk/search.aspx?q=royal%20viagra viagra   袵被?被  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cialis%20pills cialis   袨??袤袤???袤?   -- [[Prvutyts]] &new{2010-03-20 (土) 19:40:13};
- http://www.armenian.com/cgi-bin/links.cgi?searchstring=cheap%20viagra viagra   袪???  http://www.findtheneedle.co.uk/companies/128701-canadian-healthcare-center.asp viagra   8OOO  http://www.ratemds.com/filecache/doctor-ratings.jsp?did=957857&option=cialis#1 cialis   >:-(   -- [[Wberndhg]] &new{2010-03-20 (土) 19:40:43};
- http://www.ratemds.com/filecache/doctor-ratings.jsp?did=957853&option=viagra#1 viagra   ??袪被袱袴被袨袨?  http://www.findtheneedle.co.uk/company-telephone.asp?telephone=4438443434 canadian pharmacy   ?袪袨?  http://www.stlouisbusinesslist.com/business/5021837.htm?info=viagra viagra   ????袪?  http://www.findtheneedle.co.uk/products/2700385-buy-cheap-viagra-pack.asp viagra   8OOO   -- [[Xjedqtfr]] &new{2010-03-20 (土) 19:41:06};
- http://www.stlouisbusinesslist.com/category/business.asp?uid=5021837&function=interview viagra   >:)  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cialis%20store cialis   袤?袪   -- [[Fanmrdox]] &new{2010-03-20 (土) 19:41:26};
- http://www.ratemds.com/filecache/doctor-ratings.jsp?did=957857&option=cialis cialis   8[[[  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cheap%20cialis cialis   袨?袨???袪???   -- [[Ferdimig]] &new{2010-03-20 (土) 19:41:36};
- http://www.ratemds.com/filecache/doctor-ratings.jsp?did=957857&option=cialis cialis   袵?袷??袤?  http://www.armenian.com/cgi-bin/links.cgi?searchstring=viagra%20store viagra   袨????  http://www.armenian.com/cgi-bin/links.cgi?searchstring=cialis%20store cialis   %-P   -- [[Dwpohbja]] &new{2010-03-20 (土) 19:41:49};

#comment


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS