Sponsored Content
Full Discussion: Hibernate in Linux
Operating Systems Linux Red Hat Hibernate in Linux Post 302154228 by Sivaswami on Friday 28th of December 2007 02:23:55 PM
Old 12-28-2007
Hibernate in Linux

1) How to enable Hibernate in Linux ?
2) Does compiling kernel from source code
alters the current setup of the kernel after implementation

Thx in advance,
siva.
 

6 More Discussions You Might Find Interesting

1. AIX

AIX, Hibernate, Java 1.5 website problem

We have an AIX machine running Tomcat 5.0.28 along with Java 1.5. There are two web application on there however when we start Tomcat and unpack the WAR files only one of the sites work. Then if we remove the working site then the other site starts to work. So it appears that one is taking... (0 Replies)
Discussion started by: coaxis
0 Replies

2. Linux

How to enable Hibernate

Hi, I want to enable hibernate in my machine. when i click hibernate option, it is throwing message that hibernate is not enabled in kernel. earlier, i was hibernating in the same machine with windows os. any idea ? Thx in advance. Siva (0 Replies)
Discussion started by: Sivaswami
0 Replies

3. Shell Programming and Scripting

Edit hibernate config file

I'd like to use a shell script to edit the params in my hibernate.cfg.xml file. I need to substitute the database info(user name, password,url) Here is a look at it: <hibernate-configuration> <session-factory name=""> <property... (1 Reply)
Discussion started by: mc1392
1 Replies

4. Ubuntu

Sound fails after waking from hibernate -- Intrepid/Xubuntu

Title says it all. Occasionally but frequently I lose sound: external speakers and headphones both make no noise. I just realized that this tends to happen (perhaps only happens) after starting the computer following hibernation. Rebooting always fixes the issue... but I'd hate to tell my... (3 Replies)
Discussion started by: CRGreathouse
3 Replies

5. UNIX for Dummies Questions & Answers

How to "hibernate" a process?

Hello everyone! Here's my problem (I'm a newbie): I use a program/calculator which launches several parallel processes at each iteration. Then it expects to receive a response file from each of the processes before continuing to the next iteration: Launch_program ---> starts 30 processes... (6 Replies)
Discussion started by: kasumlolla
6 Replies

6. UNIX for Advanced & Expert Users

Hibernate and Suspend

I have a C++ program which ends up getting run on every conceivable distro. What I can't do in C++, I can do by shelling out to the O/S. I am trying to find a portable way to send the system into hibernate and suspend modes. For users who have pm-utils, of course, I can use that, but I am trying... (4 Replies)
Discussion started by: BrandonShw
4 Replies
KEXEC_LOAD(2)						     Linux Programmer's Manual						     KEXEC_LOAD(2)

NAME
kexec_load - load a new kernel for later execution SYNOPSIS
#include <linux/kexec.h> long kexec_load(unsigned long entry, unsigned long nr_segments, struct kexec_segment *segments, unsigned long flags); Note: There is no glibc wrapper for this system call; see NOTES. DESCRIPTION
The kexec_load() system call loads a new kernel that can be executed later by reboot(2). The flags argument is a mask whose high-order bits control the operation of the call. The following values can be specified in flags: KEXEC_ON_CRASH (since Linux 2.6.13) Execute the new kernel automatically on a system crash. KEXEC_PRESERVE_CONTEXT (since Linux 2.6.27) Preserve the system hardware and software states before executing the new kernel. This could be used for system suspend. This flag is only available if the kernel was configured with CONFIG_KEXEC_JUMP, and is only effective if nr_segments is greater than 0. The low-order bits of flags contain the architecture of the to-be-executed kernel. Specify (OR) the constant KEXEC_ARCH_DEFAULT to use the current architecture, or one of the following architecture constants KEXEC_ARCH_386, KEXEC_ARCH_X86_64, KEXEC_ARCH_PPC, KEXEC_ARCH_PPC64, KEXEC_ARCH_IA_64, KEXEC_ARCH_ARM, KEXEC_ARCH_S390, KEXEC_ARCH_SH, KEXEC_ARCH_MIPS, and KEXEC_ARCH_MIPS_LE. The architecture must be exe- cutable on the CPU of the system. The entry argument is the physical entry address in the kernel image. The nr_segments argument is the number of segments pointed to by the segments pointer. The segments argument is an array of kexec_segment structures which define the kernel layout: struct kexec_segment { void *buf; /* Buffer in user space */ size_t bufsz; /* Buffer length in user space */ void *mem; /* Physical address of kernel */ size_t memsz; /* Physical address length */ }; The kernel image defined by segments is copied from the calling process into previously reserved memory. RETURN VALUE
On success, kexec_load() returns 0. On error, -1 is returned and errno is set to indicate the error. ERRORS
EBUSY Another crash kernel is already being loaded or a crash kernel is already in use. EINVAL flags is invalid; or nr_segments is too large EPERM The caller does not have the CAP_SYS_BOOT capability. VERSIONS
The kexec_load() system call first appeared in Linux 2.6.13. CONFORMING TO
This system call is Linux-specific. NOTES
Currently, there is no glibc support for kexec_load(). Call it using syscall(2). The required constants are in the Linux kernel source file linux/kexec.h, which is not currently exported to glibc. Therefore, these con- stants must be defined manually. This system call is only available if the kernel was configured with CONFIG_KEXEC. SEE ALSO
reboot(2), syscall(2) COLOPHON
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2012-07-13 KEXEC_LOAD(2)
All times are GMT -4. The time now is 05:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy