Sindbad~EG File Manager

Current Path : /proc/2470164/root/usr/share/systemtap/runtime/linux/
Upload File :
Current File : //proc/2470164/root/usr/share/systemtap/runtime/linux/stap_mmap_lock.h

#ifndef __STAP_MMAP_LOCK_H
#define __STAP_MMAP_LOCK_H

#ifdef STAPCONF_MMAP_LOCK
#include <linux/mmap_lock.h>
#else

/* for pre-5.8 kernels, emulate new api */

#define mmap_read_lock(mm) down_read(&mm->mmap_sem)
#define mmap_read_trylock(mm) down_read_trylock(&mm->mmap_sem)
#define mmap_read_unlock(mm) up_read(&mm->mmap_sem)

#endif
#endif

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists