bus_adjust_resource(9) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

bus_adjust_resource(9)

This  function  is  used  to ask the parent bus to adjust the re‐
source range assigned to an  allocated  resource.   The  resource
should have been allocated by a previous call to The new resource
range  must  overlap  the  existing  range of The argument should
match the argument passed to when the resource was initially  al‐
located.  Note that none of the constraints of the original allo‐
cation  request  such  as  alignment or boundary restrictions are
checked by It is the caller's responsibility to enforce any  such
requirements.   The  method  returns  zero on success or an error
code on failure.  Grow an existing memory resource by 4096 bytes.
        struct resource *res;         int error;

        error  =  bus_adjust_resource(dev,  SYS_RES_MEMORY,  res,
             rman_get_start(res),  rman_get_end(res)  +  0x1000);
will fail if: The device does not have a parent device.  The  re‐
source  is  a  shared  resource.   The new address range does not
overlap with the existing address range of The new address  range
conflicts with another allocated resource.
















































맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3