Unix and Linux Discussions Tagged with lock |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
5,212 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,645 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
7,078 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
2,529 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
5,162 |
SCO |
|
|
|
1 |
5,398 |
Shell Programming and Scripting |
|
|
|
1 |
12,341 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
4,539 |
Programming |
|
|
|
1 |
3,686 |
HP-UX |
|
|
|
7 |
25,466 |
Programming |
|
|
|
1 |
4,552 |
OS X (Apple) |
|
|
|
2 |
4,664 |
HP-UX |
|
|
|
3 |
5,343 |
OS X (Apple) |
|
|
|
0 |
1,552 |
Solaris BigAdmin RSS |
|
|
|
0 |
3,533 |
SCO |
|
|
|
0 |
1,325 |
Software Releases - RSS News |
|
|
|
14 |
11,333 |
Programming |
|
|
|
2 |
16,546 |
Shell Programming and Scripting |
|
|
|
2 |
2,972 |
Shell Programming and Scripting |
|
|
|
3 |
15,908 |
Shell Programming and Scripting |
|
|
|
0 |
4,926 |
Programming |
|
|
|
2 |
3,497 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,749 |
Complex Event Processing RSS News |
|
|
|
0 |
1,928 |
Software Releases - RSS News |
|
|
|
5 |
8,286 |
Linux |
|
|
|
5 |
8,956 |
HP-UX |
|
|
|
2 |
8,964 |
Programming |
|
|
|
1 |
12,103 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
7,616 |
Shell Programming and Scripting |
|
|
|
4 |
5,148 |
Shell Programming and Scripting |
|
|
|
2 |
6,338 |
Shell Programming and Scripting |
|
|
|
1 |
9,124 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
6,089 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,783 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
6,723 |
HP-UX |
|
|
|
5 |
7,478 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
8,821 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,925 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
4 |
4,420 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
25,598 |
UNIX for Dummies Questions & Answers |
lock_init(9r) lock_init(9r)
NAME
lock_init - General: Initializes a complex lock
SYNOPSIS
#include <kern/lock.h>
void lock_init(
lock_t lock_structptr,
boolean_t can_sleep );
ARGUMENTS
Specifies a pointer to the complex lock structure, lock. The lock structure is an opaque data structure; that is, its associated members
are referenced and manipulated by the operating system and not by the user of the complex lock mechanism. Specifies a Boolean value that
indicates whether to allow kernel threads to block (sleep) if the complex lock is asserted. You can pass to this argument only the value
TRUE (allow kernel threads to block if the lock is asserted).
DESCRIPTION
The lock_init routine initializes a complex lock. You identify this lock by declaring a pointer to a complex lock structure and passing it
as the first argument. The complex lock structure pointer must be initialized before you can assert read and write operations on the com-
plex lock.
RETURN VALUES
None
FILES
SEE ALSO
Routines: lock_done(9r), lock_read(9r), lock_terminate(9r), lock_try_read(9r), lock_try_write(9r), lock_write(9r)
Data Structures: lock(9s)
lock_init(9r)