Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

console_lock(9) [centos man page]

CONSOLE_LOCK(9) 						   Driver Basics						   CONSOLE_LOCK(9)

NAME
console_lock - lock the console system for exclusive use. SYNOPSIS
void console_lock(void); ARGUMENTS
void no arguments DESCRIPTION
Acquires a lock which guarantees that the caller has exclusive access to the console system and the console_drivers list. Can sleep, returns nothing. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 CONSOLE_LOCK(9)

Check Out this Related Man Page

VM_MAP_LOCK(9)						   BSD Kernel Developer's Manual					    VM_MAP_LOCK(9)

NAME
vm_map_lock, vm_map_unlock, vm_map_lock_read, vm_map_unlock_read, vm_map_trylock, vm_map_trylock_read, vm_map_lock_upgrade, vm_map_lock_downgrade -- vm_map locking macros SYNOPSIS
#include <sys/param.h> #include <vm/vm.h> #include <vm/vm_map.h> void vm_map_lock(vm_map_t map); void vm_map_unlock(vm_map_t map); void vm_map_lock_read(vm_map_t map); void vm_map_unlock_read(vm_map_t map); int vm_map_trylock(vm_map_t map); int vm_map_trylock_read(vm_map_t map); int vm_map_lock_upgrade(vm_map_t map); int vm_map_lock_downgrade(vm_map_t map); DESCRIPTION
The vm_map_lock() macro obtains an exclusive lock on map. The vm_map_unlock() macro releases an exclusive lock on map. The vm_map_lock_read() macro obtains a read-lock on map. The vm_map_unlock_read() macro releases a read-lock on map. The vm_map_trylock() macro attempts to obtain an exclusive lock on map. It returns FALSE if the lock cannot be immediately acquired; other- wise return TRUE with the lock acquired. The vm_map_trylock_read() macro attempts to obtain a read-lock on map. It returns FALSE if the lock cannot be immediately acquired; other- wise return TRUE with the lock acquired. The vm_map_lock_upgrade() macro attempts to atomically upgrade a read-lock on map to an exclusive lock. The vm_map_lock_downgrade() macro attempts to downgrade an exclusive lock on map to a read-lock. IMPLEMENTATION NOTES
Currently, all of the locking macros implement their locks as sleep locks. SEE ALSO
vm_map(9) AUTHORS
This manual page was written by Bruce M Simpson <bms@spc.org>. BSD
July 19, 2003 BSD
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

command line work script doesn't

Hello, I'm stuck and confused as to why when I execute things form the command line it works but when in a script it doesn't. My script: ### creating a lock on the console touch /var/run/console.lock chmod 600 /var/run/console.lock echo "$User" >>... (2 Replies)
Discussion started by: larry
2 Replies

2. UNIX for Advanced & Expert Users

Linux server locking up

I've been running Django on MySQL on a Linux server for about 3 months w/o any problem. Suddenly a couple days ago, the server Django began throwing errors about not being able to connect to MySQL, at which point the entire server seizes up. The Apache Web server stops serving pages and SSH seizes... (3 Replies)
Discussion started by: mongoose1
3 Replies

3. Programming

How to lock own console when idle?

Newbie here, have looked using search engine and can find nothing revelant to my problem.. Using Linux Here, I want to create a unix daemon (using C) that run to check user idle time, then if the idle time match the timeout, that console will be locked automatically (user need to enter... (14 Replies)
Discussion started by: develop_5889
14 Replies

4. Shell Programming and Scripting

Implementing Ctrl +C in a script as a part of automation

Hi, I am working on Solaris SPARC where we used start the BEA WebLogic Server for some project module. The server is started very simply by changing to its home directory and starting the script called ./startWebLogic.sh. Upto this no big deal. Once the server get started and comes to... (6 Replies)
Discussion started by: bhaskar_m
6 Replies