Motr  M0
kthread.c File Reference
#include <linux/version.h>
#include "lib/thread.h"
#include "lib/misc.h"
#include "lib/arith.h"
#include "lib/bitmap.h"
#include "module/instance.h"
#include "addb2/global.h"
#include "lib/trace.h"
Include dependency graph for kthread.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_LIB
 

Functions

M0_INTERNAL struct m0_thread_tlsm0_thread_tls (void)
 
M0_INTERNAL int m0_threads_init (struct m0 *instance)
 
M0_INTERNAL void m0_threads_fini (void)
 
M0_INTERNAL int m0_threads_once_init (void)
 
M0_INTERNAL void m0_threads_once_fini (void)
 
M0_INTERNAL void m0_thread_enter (struct m0_thread *thread, bool full)
 
static void tls_fini (struct m0_thread_tls *tls)
 
M0_INTERNAL void m0_thread_leave (void)
 
M0_INTERNAL void m0_thread__cleanup (struct m0_thread *bye)
 
static int kthread_trampoline (void *arg)
 
M0_INTERNAL int m0_thread_init_impl (struct m0_thread *q, const char *name)
 
int m0_thread_join (struct m0_thread *q)
 
M0_INTERNAL int m0_thread_signal (struct m0_thread *q, int sig)
 
M0_INTERNAL int m0_thread_confine (struct m0_thread *q, const struct m0_bitmap *processors)
 
M0_INTERNAL void m0_enter_awkward (void)
 
M0_INTERNAL void m0_exit_awkward (void)
 
M0_INTERNAL bool m0_is_awkward (void)
 
M0_INTERNAL struct m0_thread_tlsm0_thread_tls_pop (void)
 
M0_INTERNAL void m0_thread_tls_back (struct m0_thread_tls *tls)
 
M0_INTERNAL uint64_t m0_pid (void)
 
M0_INTERNAL uint64_t m0_process (void)
 
M0_INTERNAL int m0_thread_arch_adopt (struct m0_thread *thread, struct m0 *instance, bool full)
 
M0_INTERNAL void m0_thread_arch_shun (void)
 

Variables

static struct m0__instance
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_LIB

Definition at line 32 of file kthread.c.