nfs-ganesha 1.4
Typedefs | Enumerations | Functions

nfs_tcb.h File Reference

#include "nfs_core.h"
#include "nlm_list.h"
#include <pthread.h>

Go to the source code of this file.

Typedefs

typedef enum thread_sm thread_sm_t

Enumerations

enum  thread_sm { THREAD_SM_RECHECK, THREAD_SM_BREAK, THREAD_SM_EXIT }

Functions

void tcb_insert (nfs_tcb_t *element)
void tcb_remove (nfs_tcb_t *element)
void tcb_head_init (void)
pause_rc wake_threads (awaken_reason_t reason)
pause_rc pause_threads (pause_reason_t reason)
void notify_threads_of_new_state (void)
void mark_thread_awake (nfs_tcb_t *wcb)
pause_rc mark_thread_existing (nfs_tcb_t *wcb)
void mark_thread_done (nfs_tcb_t *wcb)
void mark_thread_asleep (nfs_tcb_t *wcb)
pause_rc wait_for_threads_to_awaken (void)
void wait_for_threads_to_exit (void)
pause_rc _wait_for_threads_to_pause (void)
int tcb_new (nfs_tcb_t *element, char *name)
thread_sm_t thread_sm_locked (nfs_tcb_t *tcbp)

Typedef Documentation

typedef enum thread_sm thread_sm_t

Enumeration Type Documentation

enum thread_sm
Enumerator:
THREAD_SM_RECHECK 
THREAD_SM_BREAK 
THREAD_SM_EXIT 

Definition at line 8 of file nfs_tcb.h.


Function Documentation

pause_rc _wait_for_threads_to_pause ( void  )

Definition at line 152 of file nfs_tcb.c.

void mark_thread_asleep ( nfs_tcb_t wcb)

mark_thread_asleep: Mark a thread as asleep

Definition at line 263 of file nfs_tcb.c.

void mark_thread_awake ( nfs_tcb_t wcb)

mark_thread_awake: Mark a thread as awake

Definition at line 340 of file nfs_tcb.c.

void mark_thread_done ( nfs_tcb_t wcb)

mark_thread_done: Mark a thread as done

Definition at line 286 of file nfs_tcb.c.

pause_rc mark_thread_existing ( nfs_tcb_t wcb)

mark_thread_exist: Mark a thread as existing

Definition at line 311 of file nfs_tcb.c.

void notify_threads_of_new_state ( void  )

Definition at line 359 of file nfs_tcb.c.

pause_rc pause_threads ( pause_reason_t  reason)

pause_threads: Pause threads.

Definition at line 388 of file nfs_tcb.c.

void tcb_head_init ( void  )

Definition at line 87 of file nfs_tcb.c.

void tcb_insert ( nfs_tcb_t element)

Definition at line 92 of file nfs_tcb.c.

int tcb_new ( nfs_tcb_t element,
char *  name 
)

tcb_new: Initialize and insert the new tcb element If no inext to prefix with the name, pass -1.

Definition at line 110 of file nfs_tcb.c.

void tcb_remove ( nfs_tcb_t element)

Definition at line 99 of file nfs_tcb.c.

thread_sm_t thread_sm_locked ( nfs_tcb_t tcbp)

Definition at line 548 of file nfs_tcb.c.

pause_rc wait_for_threads_to_awaken ( void  )

Definition at line 246 of file nfs_tcb.c.

void wait_for_threads_to_exit ( void  )

wait_for_threads_to_exit: Wait for threads to exit

Definition at line 129 of file nfs_tcb.c.

pause_rc wake_threads ( awaken_reason_t  reason)

wake_threads: Wake up threads.

Definition at line 480 of file nfs_tcb.c.