Searched refs:region_add (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.6/Documentation/translations/zh_CN/mm/ |
D | hugetlbfs_reserv.rst | 288 long region_add(struct resv_map *resv, long f, long t); 299 a) 如果操作能够成功,region_add()将被调用,以实际修改先前传递给region_chg()的相同范围 303 注意,这是一个两步的过程, region_add()和 region_abort()在事先调用 region_chg()后保证 304 成功。 region_chg()负责预先分配任何必要的数据结构以确保后续操作(特别是 region_add())的 307 如上所述,region_chg()确定该范围内当前没有在映射中表示的页面的数量。region_add()返回添加 308 到映射中的范围内的页数。在大多数情况下, region_add() 的返回值与 region_chg() 的返回值相 309 同。然而,在共享映射的情况下,有可能在调用 region_chg() 和 region_add() 之间对预留映射进 310 行更改。在这种情况下,region_add()的返回值将与region_chg()的返回值不符。在这种情况下,全局计数 354 这将调用 region_add(),用于指定的页面。与region_chg和region_add的情况一样,该函数应在 372 了私有和共享映射的不同预留映射语义。因此,region_add被调用用于共享映射(因为映射中的条目表
|
/Linux-v6.6/Documentation/mm/ |
D | hugetlbfs_reserv.rst | 378 long region_add(struct resv_map *resv, long f, long t); 391 a) If the operation can succeed, region_add() is called to actually modify 397 Note that this is a two step process where region_add() and region_abort() 400 necessary to ensure the subsequent operations (specifically region_add())) 405 the caller. region_add() returns the number of pages in the range added to 406 the map. In most cases, the return value of region_add() is the same as the 409 region_chg() and region_add(). In this case, the return value of region_add() 477 This calls region_add() for the specified page. As in the case of region_chg 478 and region_add, this routine is to be called after a previous call to 503 region_add is called for shared mappings (as an entry present in the map
|
/Linux-v6.6/mm/ |
D | hugetlb.c | 705 static long region_add(struct resv_map *resv, long f, long t, in region_add() function 2731 ret = region_add(resv, idx, idx + 1, 1, NULL, NULL); in __vma_reservation_common() 2741 ret = region_add(resv, idx, idx + 1, 1, NULL, NULL); in __vma_reservation_common() 2754 ret = region_add(resv, idx, idx + 1, 1, NULL, NULL); in __vma_reservation_common() 6804 add = region_add(resv_map, from, to, regions_needed, h, h_cg); in hugetlb_reserve_pages()
|