ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:25.51 GB of 70.42 GB (36.22%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ usr/ src/ linux-headers-3.0.0-14-generic-pae/ include/ linux/ - drwxr-xr-x

Directory:
Viewing file:     rwlock.h (4.29 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#ifndef __LINUX_RWLOCK_H
#define __LINUX_RWLOCK_H

#ifndef __LINUX_SPINLOCK_H
# error "please don't include this file directly"
#endif

/*
 * rwlock related methods
 *
 * split out from spinlock.h
 *
 * portions Copyright 2005, Red Hat, Inc., Ingo Molnar
 * Released under the General Public License (GPL).
 */

#ifdef CONFIG_DEBUG_SPINLOCK
  extern void __rwlock_init(rwlock_t *lock, const char *name,
                struct lock_class_key *key);
# define rwlock_init(lock)                    \
do {                                \
    static struct lock_class_key __key;            \
                                \
    __rwlock_init((lock), #lock, &__key);            \
} while (0)
#else
# define rwlock_init(lock)                    \
    do { *(lock) = __RW_LOCK_UNLOCKED(lock); } while (0)
#endif

#ifdef CONFIG_DEBUG_SPINLOCK
 extern void do_raw_read_lock(rwlock_t *lock) __acquires(lock);
#define do_raw_read_lock_flags(lock, flags) do_raw_read_lock(lock)
 extern int do_raw_read_trylock(rwlock_t *lock);
 extern void do_raw_read_unlock(rwlock_t *lock) __releases(lock);
 extern void do_raw_write_lock(rwlock_t *lock) __acquires(lock);
#define do_raw_write_lock_flags(lock, flags) do_raw_write_lock(lock)
 extern int do_raw_write_trylock(rwlock_t *lock);
 extern void do_raw_write_unlock(rwlock_t *lock) __releases(lock);
#else
# define do_raw_read_lock(rwlock)    do {__acquire(lock); arch_read_lock(&(rwlock)->raw_lock); } while (0)
# define do_raw_read_lock_flags(lock, flags) \
        do {__acquire(lock); arch_read_lock_flags(&(lock)->raw_lock, *(flags)); } while (0)
# define do_raw_read_trylock(rwlock)    arch_read_trylock(&(rwlock)->raw_lock)
# define do_raw_read_unlock(rwlock)    do {arch_read_unlock(&(rwlock)->raw_lock); __release(lock); } while (0)
# define do_raw_write_lock(rwlock)    do {__acquire(lock); arch_write_lock(&(rwlock)->raw_lock); } while (0)
# define do_raw_write_lock_flags(lock, flags) \
        do {__acquire(lock); arch_write_lock_flags(&(lock)->raw_lock, *(flags)); } while (0)
# define do_raw_write_trylock(rwlock)    arch_write_trylock(&(rwlock)->raw_lock)
# define do_raw_write_unlock(rwlock)    do {arch_write_unlock(&(rwlock)->raw_lock); __release(lock); } while (0)
#endif

#define read_can_lock(rwlock)        arch_read_can_lock(&(rwlock)->raw_lock)
#define write_can_lock(rwlock)        arch_write_can_lock(&(rwlock)->raw_lock)

/*
 * Define the various rw_lock methods.  Note we define these
 * regardless of whether CONFIG_SMP or CONFIG_PREEMPT are set. The various
 * methods are defined as nops in the case they are not required.
 */
#define read_trylock(lock)    __cond_lock(lock, _raw_read_trylock(lock))
#define write_trylock(lock)    __cond_lock(lock, _raw_write_trylock(lock))

#define write_lock(lock)    _raw_write_lock(lock)
#define read_lock(lock)        _raw_read_lock(lock)

#if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_SPINLOCK)

#define read_lock_irqsave(lock, flags)            \
    do {                        \
        typecheck(unsigned long, flags);    \
        flags = _raw_read_lock_irqsave(lock);    \
    } while (0)
#define write_lock_irqsave(lock, flags)            \
    do {                        \
        typecheck(unsigned long, flags);    \
        flags = _raw_write_lock_irqsave(lock);    \
    } while (0)

#else

#define read_lock_irqsave(lock, flags)            \
    do {                        \
        typecheck(unsigned long, flags);    \
        _raw_read_lock_irqsave(lock, flags);    \
    } while (0)
#define write_lock_irqsave(lock, flags)            \
    do {                        \
        typecheck(unsigned long, flags);    \
        _raw_write_lock_irqsave(lock, flags);    \
    } while (0)

#endif

#define read_lock_irq(lock)        _raw_read_lock_irq(lock)
#define read_lock_bh(lock)        _raw_read_lock_bh(lock)
#define write_lock_irq(lock)        _raw_write_lock_irq(lock)
#define write_lock_bh(lock)        _raw_write_lock_bh(lock)
#define read_unlock(lock)        _raw_read_unlock(lock)
#define write_unlock(lock)        _raw_write_unlock(lock)
#define read_unlock_irq(lock)        _raw_read_unlock_irq(lock)
#define write_unlock_irq(lock)        _raw_write_unlock_irq(lock)

#define read_unlock_irqrestore(lock, flags)            \
    do {                            \
        typecheck(unsigned long, flags);        \
        _raw_read_unlock_irqrestore(lock, flags);    \
    } while (0)
#define read_unlock_bh(lock)        _raw_read_unlock_bh(lock)

#define write_unlock_irqrestore(lock, flags)        \
    do {                        \
        typecheck(unsigned long, flags);    \
        _raw_write_unlock_irqrestore(lock, flags);    \
    } while (0)
#define write_unlock_bh(lock)        _raw_write_unlock_bh(lock)

#define write_trylock_irqsave(lock, flags) \
({ \
    local_irq_save(flags); \
    write_trylock(lock) ? \
    1 : ({ local_irq_restore(flags); 0; }); \
})

#endif /* __LINUX_RWLOCK_H */
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.5292 seconds