RH 9 and spinlock

From: Cédric Pillonel (cedric.pillonel_at_swisscom.com)
Date: 12/21/04


Date: Tue, 21 Dec 2004 08:03:34 +0100

I try to compile a library using spinlocks. This library includes
"linux/spinlock.h", but this file is empty:

#ifndef __LINUX_SPINLOCK_H
#define __LINUX_SPINLOCK_H

#endif /* __LINUX_SPINLOCK_H */

I have also taken a look at "asm/spinlock.h":

#ifndef __ASM_SPINLOCK_H
#define __ASM_SPINLOCK_H

#warning Unportable code! This header does not exist on all architectures
#warning Including kernel headers in userspace!
#endif /* __ASM_SPINLOCK_H */

Why are both of these files empty? Where is spin_lock() defined?
I have RedHat 9, kernel 2.4.20-31.9, not the smp one, I have installed all
RPMs. These files have been installed by the following package:
glibc-kernheaders-2.4-8.10.

Thank you.



Relevant Pages

  • RH 9 and spinlock
    ... This header does not exist on all architectures ... #warning Including kernel headers in userspace! ... Why are both of these files empty? ...
    (comp.os.linux)
  • RH 9 and spinlock
    ... This header does not exist on all architectures ... #warning Including kernel headers in userspace! ... Why are both of these files empty? ...
    (comp.os.linux.misc)
  • Re: TRUE and FALSE values in the relational lattice
    ... E * E: natural join ... the relation with empty header and a single empty tuple ... the equality relation with header ... So the syntax becomes: ...
    (comp.databases.theory)
  • HELP! how do i read in multiline data blocks?
    ... fgetl, etc., and trying out various things, but I am not succeeding. ... ONE HEADER LINE ... ONE EMPTY LINE ... I know I want a loop that goes through one datablock at a time, ...
    (comp.soft-sys.matlab)
  • Re: No exceptions?
    ... I had in mind that an "empty" header would be assumed. ... I'm still not sure whether relations called TRUE and FALSE would cause confusion with the REAL TRUE and FALSE.) ... with the confidence that your expressions are still correct. ...
    (comp.databases.theory)