ALLOCATE_RESOURCE(9) Hardware Interfaces ALLOCATE_RESOURCE(9)NAME
allocate_resource - allocate empty slot in the resource tree given range & alignment. The resource will be reallocated with a new size if
it was already allocated
int allocate_resource(struct resource * root, struct resource * new, resource_size_t size, resource_size_t min, resource_size_t max,
resource_size_t align, resource_size_t (*alignf) (void *, const struct resource *, resource_size_t, resource_size_t),
void * alignf_data);
root resource descriptor
resource descriptor desired by caller
requested resource region size
minimum boundary to allocate
maximum boundary to allocate
alignment requested, in bytes
alignment function, optional, called if not NULL
arbitrary data to pass to the alignf function
COPYRIGHT Kernel Hackers Manual 3.10 June 2014 ALLOCATE_RESOURCE(9)
Check Out this Related Man Page
BUS_ADJUST_RESOURCE(9) BSD Kernel Developer's Manual BUS_ADJUST_RESOURCE(9)NAME
bus_adjust_resource -- adjust resource allocated from a parent bus
bus_adjust_resource(device_t dev, int type, struct resource *r, u_long start, u_long end);
This function is used to ask the parent bus to adjust the resource range assigned to an allocated resource. The resource r should have been
allocated by a previous call to bus_alloc_resource(9). The new resource range must overlap the existing range of r. The type argument
should match the type argument passed to bus_alloc_resource(9) when the resource was initially allocated.
Note that none of the constraints of the original allocation request such as alignment or boundary restrictions are checked by
bus_adjust_resource(). It is the caller's responsibility to enforce any such requirements.
The bus_adjust_resource() method returns zero on success or an error code on failure.
Grow an existing memory resource by 4096 bytes.
struct resource *res;
error = bus_adjust_resource(dev, SYS_RES_MEMORY, res,
rman_get_start(res), rman_get_end(res) + 0x1000);
bus_adjust_resource() will fail if:
[EINVAL] The dev device does not have a parent device.
[EINVAL] The r resource is a shared resource.
[EINVAL] The new address range does not overlap with the existing address range of r.
[EBUSY] The new address range conflicts with another allocated resource.
SEE ALSO bus_alloc_resource(9), bus_release_resource(9), device(9), driver(9)BSD April 29, 2011 BSD
My file looks like:
I need a script that will "group by" the first field and Concatenate the values.
My output should be:
Does anyone have any idea ? (10 Replies)
I have a strange problem with nim installation.
I am able to push the image from Nim server to the client and the Os is reinstalled successfully.But after the installation the client doesnt hold any host name or ip address.That is the host name is assigned as local host and ip is... (2 Replies)
When I use NIM to reinstall a AIX 5.3 use mksysb
It shows error:
Command: failed stdout: yes stderr: no
Before command completion, additional instructions may appear below.
... (2 Replies)
I am having a really bad day today.
I am trying to get an nfs mount to work. I want to have a mount from machinea:/home going to /home on machineb. I can mount machinea:/home on any mount point EXCEPT /home and see the files. I can not see the files or list the directory (it hangs) when I mount... (17 Replies)
I need help to configure nim client on nim server..
can i define aix 126.96.36.199 on aix 188.8.131.52 nim server.. while i m configuring nim client on nim server its getting msg that images not same.. i need to confirm that both version should be same or not..
Thanks.. (5 Replies)
I just installed linux mint 11 yesterday. I cannot get the wireless to register, it says that firmware is missing but I can not figure out how to make it work. I am still a newbie and would appreciate any help possible. Thank you. (7 Replies)
Ok so I'm trying for the first time to install AIX on a LPAR with NIM.
root@oaexpnimp01(/home/root) # oslevel -s
I'm trying to install AIX 6.1 TL1. I successfully created a new lpp source
root@oaexpnimp01(/home/root) # lsnim -l AIX61_TL1_2... (10 Replies)