Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
async-thread.c File Reference
#include <linux/kthread.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/freezer.h>
#include "async-thread.h"

Go to the source code of this file.

Data Structures

struct  btrfs_worker_thread
struct  worker_start


#define WORK_QUEUED_BIT   0
#define WORK_DONE_BIT   1
#define WORK_HIGH_PRIO_BIT   3


void btrfs_stop_workers (struct btrfs_workers *workers)
void btrfs_init_workers (struct btrfs_workers *workers, char *name, int max, struct btrfs_workers *async_helper)
int btrfs_start_workers (struct btrfs_workers *workers)
void btrfs_requeue_work (struct btrfs_work *work)
void btrfs_set_work_high_prio (struct btrfs_work *work)
void btrfs_queue_worker (struct btrfs_workers *workers, struct btrfs_work *work)

Macro Definition Documentation

#define WORK_DONE_BIT   1

Definition at line 27 of file async-thread.c.

#define WORK_HIGH_PRIO_BIT   3

Definition at line 29 of file async-thread.c.


Definition at line 28 of file async-thread.c.

#define WORK_QUEUED_BIT   0

Definition at line 26 of file async-thread.c.

Function Documentation

void btrfs_init_workers ( struct btrfs_workers workers,
char name,
int  max,
struct btrfs_workers async_helper 

Definition at line 441 of file async-thread.c.

void btrfs_queue_worker ( struct btrfs_workers workers,
struct btrfs_work work 

Definition at line 667 of file async-thread.c.

void btrfs_requeue_work ( struct btrfs_work work)

Definition at line 623 of file async-thread.c.

void btrfs_set_work_high_prio ( struct btrfs_work work)

Definition at line 659 of file async-thread.c.

int btrfs_start_workers ( struct btrfs_workers workers)

Definition at line 507 of file async-thread.c.

void btrfs_stop_workers ( struct btrfs_workers workers)

Definition at line 408 of file async-thread.c.