Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

__set_bit(9) [centos man page]

__SET_BIT(9)						     Basic C Library Functions						      __SET_BIT(9)

NAME
__set_bit - Set a bit in memory SYNOPSIS
void __set_bit(int nr, volatile unsigned long * addr); ARGUMENTS
nr the bit to set addr the address to start counting from DESCRIPTION
Unlike set_bit, this function is non-atomic and may be reordered. If it's called on the same region of memory simultaneously, the effect may be that only one operation succeeds. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 __SET_BIT(9)

Check Out this Related Man Page

ATOMIC_DEC(3)						   BSD Library Functions Manual 					     ATOMIC_DEC(3)

NAME
atomic_dec, atomic_dec_32, atomic_dec_uint, atomic_dec_ulong, atomic_dec_ptr, atomic_dec_64, atomic_dec_32_nv, atomic_dec_uint_nv, atomic_dec_ulong_nv, atomic_dec_ptr_nv, atomic_dec_64_nv -- atomic decrement operations SYNOPSIS
#include <sys/atomic.h> void atomic_dec_32(volatile uint32_t *ptr); void atomic_dec_uint(volatile unsigned int *ptr); void atomic_dec_ulong(volatile unsigned long *ptr); void atomic_dec_ptr(volatile void *ptr); void atomic_dec_64(volatile uint64_t *ptr); uint32_t atomic_dec_32_nv(volatile uint32_t *ptr); unsigned int atomic_dec_uint_nv(volatile unsigned int *ptr); unsigned long atomic_dec_ulong_nv(volatile unsigned long *ptr); void * atomic_dec_ptr_nv(volatile void *ptr); uint64_t atomic_dec_64_nv(volatile uint64_t *ptr); DESCRIPTION
The atomic_dec family of functions decrement (by one) the variable referenced by ptr in an atomic fashion. The *_nv() variants of these functions return the new value. The 64-bit variants of these functions are available only on platforms that can support atomic 64-bit memory access. Applications can check for the availability of 64-bit atomic memory operations by testing if the pre-processor macro __HAVE_ATOMIC64_OPS is defined. SEE ALSO
atomic_ops(3) HISTORY
The atomic_dec functions first appeared in NetBSD 5.0. BSD
April 11, 2007 BSD
Man Page

13 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

variable substitution in ksh

Hi I have a variable BIT1 which holds some value. Is there a way to retrieve the value of this variable indirectly via another variable, lets say SUBSET_BIT_NUM=1, so the call will look something like this: sundev1 $ echo ${BIT${SUBSET_BIT_NUM}} ksh: ${BIT${SUBSET_BIT_NUM}}: bad substitution ... (3 Replies)
Discussion started by: aoussenko
3 Replies

2. Shell Programming and Scripting

Split a 30GB XML file into 16 pieces

I have a 30 GB XMl file which looks like this: <page> <title>APRIL</title> .........(text contents that I need to extract and store in 1.dat including the <title> tag) </page> <page> <title>August</title> ....(text contents that I need to store in 2.dat including the <title> tag) </page>... (13 Replies)
Discussion started by: shoaibjameel123
13 Replies

3. Tips and Tutorials

Unix File Permissions

Introduction I have seen some misinformation regarding Unix file permissions. I will try to set the record straight. Take a look at this example of some output from ls: $ ls -ld /usr/bin /usr/bin/cat drwxrwxr-x 3 root bin 8704 Sep 23 2004 /usr/bin -r-xr-xr-x 1 bin bin ... (6 Replies)
Discussion started by: Perderabo
6 Replies

4. Solaris

Perl 5.8.9 on Solaris 5.10

HI I am getting some error while i try to install perl 5.8.9 for solaris-5.10 ( SUNW 5.9 Compiler) . I have tried the below steps to compile perl Variable settings: export CC=cc export CFLAGS="-m64" ... (2 Replies)
Discussion started by: praveensam
2 Replies

5. Solaris

Oracle DB install failure

Hi all, I'm quite new to Solaris and I've been searching around everywhere to try and find the root of my Oracle DB install problem. It quits immediately when it runs isainfo when it gets a return of 3md64. To me this looks like there is a typo where ever isainfo pulls it's info from, but I... (13 Replies)
Discussion started by: asilv
13 Replies

6. HP-UX

Gcc .bz2

Hello, I need to install GCC but the only archive (GCC-4.9.2) for it I can find is a .bz2 format file. Looking at https://www.unix.com/shell-programming-and-scripting/105282-how-unpack-install-tar-bz2-library.html provided some help, but when I use tar in that way I get the following,... (8 Replies)
Discussion started by: YogaBija
8 Replies

7. Proxy Server

Problem with Installing Perl Module in Fedora 20

Hi, I have downloaded Audio::Beep. I tried to install it through CPAN but i got YAML error. Then I have tried to install it manually. I tried all the instructions provided in README file. It worked but when i am compiling , it still gives me error: # ls acct21.pl~ imap(2).pl ... (15 Replies)
Discussion started by: zak100
15 Replies

8. Programming

C++ Linking Error: invalid DSO for symbol

I am on a FreeBSD system trying to build a piece of software that I wrote. I had built it in the past but recently reinstalled FreeBSD. I am not sure what is going on. The software depends on and wxgtk2.8. Using g++: $ make g++ -c `wx-config --cxxflags`... (9 Replies)
Discussion started by: AntumDeluge
9 Replies

9. Shell Programming and Scripting

All possible combinations problem

Post #2 is the original post. This is the first answer to post #2 Hi, try: awk ' { match($0,/1+/) b=substr($0,1,RSTART-1) e=substr($0,RSTART+RLENGTH,length) for(i=2^RLENGTH-2; i>0; i--) { s=x; d=i while(d) { s=(d%2==0?0:1) s ... (12 Replies)
Discussion started by: Scrutinizer
12 Replies

10. Programming

PERL MQSeries MQCONN issue

Hi, I have an issue with a PERL5 script that calls MQCONN. I get this error on this Perl step when connecting to my Q manager: "Undefined Undefined subroutine &main::MQCONN called at ./quelog.pl " I use this code:$Hconn = MQCONN($QMGR,$CompCode,$Reason); In my .profile: export... (2 Replies)
Discussion started by: mrn6430
2 Replies

11. Programming

C++ linking library to a library

Hi All, My application main engine will use a shared library where we do many operation. We are trying to implement the linear algebra operation on the shared library for that I need to link my shared library to the lapack library in /usr/lib. Below is my make file. Can you please let me... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies

12. Shell Programming and Scripting

Can't locate loadable object for module IO::Tty

I am getting this error: Can't locate loadable object for module IO::Tty in @INC (@INC contains: /production/79p/perl5/lib/site_perl/5.28.0/x86_64-linux /production/79p/perl5/lib/site_perl/5.28.0 /production/79p/perl5/lib/5.28.0/x86_64-linux /production/79p/perl5/lib/5.28.0... (2 Replies)
Discussion started by: mrn6430
2 Replies

13. UNIX for Beginners Questions & Answers

NTP synchronised problem in our Centos 7.6 node

Someone, please help on this issue:- Note : for security reason i didn't mention hostnames and ips. ============================================================================== # ntpstat unsynchronised polling server every 1024 s Ntpstat showing unsynchronised. ... (29 Replies)
Discussion started by: shanmugaraj
29 Replies