Visit The New, Modern Unix Linux Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #42
Difficulty: Easy
In general, cookies are created by web clients and stored on web servers.
True or False?
Linux & Unix Commands - Search Man Pages

allocate_resource(9) [centos man page]

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 SYNOPSIS
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); ARGUMENTS
root root resource descriptor new resource descriptor desired by caller size requested resource region size min minimum boundary to allocate max maximum boundary to allocate align alignment requested, in bytes alignf alignment function, optional, called if not NULL alignf_data 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 SYNOPSIS
#include <sys/param.h> #include <sys/bus.h> #include <machine/bus.h> #include <sys/rman.h> #include <machine/resource.h> int bus_adjust_resource(device_t dev, int type, struct resource *r, u_long start, u_long end); DESCRIPTION
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. RETURN VALUES
The bus_adjust_resource() method returns zero on success or an error code on failure. EXAMPLES
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); ERRORS
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

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

group by in files :-)

My file looks like: X^~^12^d X^~^19^d Y^~^5^d Y^~^10^d Y^~^11^d Z^~^14^d I need a script that will "group by" the first field and Concatenate the values. My output should be: X^~^12,19^d Y^~^5,10,11^d Z^~^14~d Does anyone have any idea ? (10 Replies)
Discussion started by: hellsd
10 Replies

2. AIX

Problem with nim installation

Dear Frnz, 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)
Discussion started by: sriram.s
2 Replies

3. AIX

NIM problem

When I use NIM to reinstall a AIX 5.3 use mksysb It shows error: COMMAND STATUS Command: failed stdout: yes stderr: no Before command completion, additional instructions may appear below. ... (2 Replies)
Discussion started by: rainbow_bean
2 Replies

4. UNIX for Advanced & Expert Users

NFS Problems

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)
Discussion started by: mbathrick
17 Replies

5. AIX

aix-configure nim client

:b:Hi... I need help to configure nim client on nim server.. can i define aix 5.3.4.0 on aix 5.3.7.0 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)
Discussion started by: sumathi.k
5 Replies

6. Linux

Can not get wireless to register in linux mint?

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)
Discussion started by: breebutner
7 Replies

7. AIX

Unable to create a SPOT

Hi everyone! Ok so I'm trying for the first time to install AIX on a LPAR with NIM. The NIM: root@oaexpnimp01(/home/root) # oslevel -s 6100-08-02-1316 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)
Discussion started by: trivium012
10 Replies

Featured Tech Videos