release_mem_region_adjustable(9) [centos man page]
RELEASE_MEM_REGION_A(9) Hardware Interfaces RELEASE_MEM_REGION_A(9)NAME
release_mem_region_adjustable - release a previously reserved memory region
SYNOPSIS
int release_mem_region_adjustable(struct resource * parent, resource_size_t start, resource_size_t size);
ARGUMENTS
parent
parent resource descriptor
start
resource start address
size
resource region size
DESCRIPTION
This interface is intended for memory hot-delete. The requested region is released from a currently busy memory resource. The requested
region must either match exactly or fit into a single busy resource entry. In the latter case, the remaining resource is adjusted
accordingly. Existing children of the busy memory resource must be immutable in the request.
NOTE
- Additional release conditions, such as overlapping region, can be supported after they are confirmed as valid cases. - When a busy memory
resource gets split into two entries, the code assumes that all children remain in the lower address entry for simplicity. Enhance this
logic when necessary.
COPYRIGHT Kernel Hackers Manual 3.10 June 2014 RELEASE_MEM_REGION_A(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
Hi everyone,
I know the following questions are noobish questions but I am asking them because I am confused about the basics of history behind UNIX and LINUX.
Ok onto business, my questions are-:
Was/Is UNIX ever an open source operating system ?
If UNIX was... (21 Replies)
Hello and thanks in advance for any help anyone can offer me
I'm trying to learn the find command and thought I was understanding it... Apparently I was wrong. I was doing compound searches and I started getting weird results with the -size test. I was trying to do a search on a 1G file owned by... (14 Replies)
hi all,
i have installed quota on my centos 7 machine and its what im after (setting size limit on users, so they cant fill the hard drive)
i want to now make this part of my create user script for my sftp server so i want to do a echo and a read command so i capture the limit they enter... (0 Replies)
Hi everybody,
Which Unix base OS have best performance for HOST virtualization?
I tested SmartOS but it needs another OS to connect remotely!
Thanks in advance. (11 Replies)
Hi All,
I need to write a shell script which opens a file and increments the version(text) within the file every time the script runs. For example:
$ cat docker_file.yml
version: '3.1'
services:
ui:
image: repo-srv.dev.io:5000/facebook/ui:0.0.2-QA1
$
So, I would like... (6 Replies)
Dear Team
We use DB2 v10.5 and using DBArtisan tool
Can someone please guide how to convert digits to binary numbers using db2 feature.
Ex> for number 9 , binary should be 1001 ( 8+1)
Any help appreciated. Thanks (2 Replies)
hi folks,
how to using tar with exclude directory and compress it using tar.Z
i only know how to exclude dir only with this command below:
tar -cvf /varios/restore/test.tar -X excludefile.txt /jfma/test1/
how to compress it using 1 command?
Thanx
Please use CODE tags as... (6 Replies)
Quite an obscure question I think.
We have a rebuild process for remote sites that allows us to PXE rebuild a till (actually a PC with a touch screen and various fancy bits) running CentOS. The current CentOS5 tills work just fine with a tar image restore and some personalisation. Sadly,... (4 Replies)
Hello All,
I had recently learnt a bit of Docker(which provides containerization process).
Here are some of my learning points from it.
Let us start first with very basic question:
What is Docker:
Docker is a platform for sysadmins and developers to DEPLOY, DEVELOP and RUN applications ... (7 Replies)
What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file.
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend (3 Replies)
Hello... And thanks in advance for any help anyone can offer me
I was trying to work out the differences between displaying modify, access, and change times with the 'ls' command. Everything seems in order when I look at files, but the access time on a directory doesn't seem to change when I... (4 Replies)
Hello everyone,
I am having an issue here with CentOS release 6.6 (Final) that shows all of the space used up, but I can't tell where the space went.
Seemingly I am using up 100%, according to
df -h
Filesystem Size Used Avail Use% Mounted on... (27 Replies)
I'm trying to use a bash script for a psych experiment that involves listening to sound files and responding. If I have something like the code below, how can I make sure that a key press is assigned to RESPONSE only after the second echo statement?
for i in 1 2 3; do
echo "Ready?"
sleep 2
... (10 Replies)
After the success of the jq - tool for parsing and manipulating JSON-Data someone wrote a tool called yq, which aims to be the same for YAML, what jq is for JSON. Seems to work fine. I'll definitely give it a chance in future.
Example YAML-File:
--- !ruby/object:Puppet::Node::Facts
... (1 Reply)
Dear All,
I am very pleased to announce that Dave Munro (gull04) is joining the Moderation Team, after being a very valuable member of UNIX.com for 15+ years.
Dave is an IT Consultant with 30 years of experience this year, has worked in many of the industry vertical market segments and has... (6 Replies)