#include <linux/module.h>
#include <linux/drbd.h>
#include <linux/in.h>
#include <linux/fs.h>
#include <linux/file.h>
#include <linux/slab.h>
#include <linux/connector.h>
#include <linux/blkpg.h>
#include <linux/cpumask.h>
#include "drbd_int.h"
#include "drbd_req.h"
#include "drbd_wrappers.h"
#include <asm/unaligned.h>
#include <linux/drbd_tag_magic.h>
#include <linux/drbd_limits.h>
#include <linux/compiler.h>
#include <linux/kthread.h>
#include <linux/drbd_nl.h>
Go to the source code of this file.
|
#define | NL_PACKET(name, number, fields) |
|
#define | NL_INTEGER(pn, pr, member) |
|
#define | NL_INT64(pn, pr, member) |
|
#define | NL_BIT(pn, pr, member) |
|
#define | NL_STRING(pn, pr, member, len) |
|
#define | NL_PACKET(name, number, fields) |
|
#define | NL_INTEGER(pn, pr, member) |
|
#define | NL_INT64(pn, pr, member) |
|
#define | NL_BIT(pn, pr, member) |
|
#define | NL_STRING(pn, pr, member, len) |
|
#define | AL_MAX ((MD_AL_MAX_SIZE-1) * AL_EXTENTS_PT) |
|
|
void | drbd_bcast_ev_helper (struct drbd_conf *mdev, char *helper_name) |
|
void | drbd_nl_send_reply (struct cn_msg *, int) |
|
int | drbd_khelper (struct drbd_conf *mdev, char *cmd) |
|
enum drbd_disk_state | drbd_try_outdate_peer (struct drbd_conf *mdev) |
|
void | drbd_try_outdate_peer_async (struct drbd_conf *mdev) |
|
enum drbd_state_rv | drbd_set_role (struct drbd_conf *mdev, enum drbd_role new_role, int force) |
|
char * | ppsize (char *buf, unsigned long long size) |
|
void | drbd_suspend_io (struct drbd_conf *mdev) |
|
void | drbd_resume_io (struct drbd_conf *mdev) |
|
enum determine_dev_size | drbd_determine_dev_size (struct drbd_conf *mdev, enum dds_flags flags) __must_hold(local) |
|
sector_t | drbd_new_dev_size (struct drbd_conf *mdev, struct drbd_backing_dev *bdev, int assume_peer_has_space) |
|
void | drbd_reconsider_max_bio_size (struct drbd_conf *mdev) |
|
void | resync_after_online_grow (struct drbd_conf *mdev) |
|
void | drbd_bcast_state (struct drbd_conf *mdev, union drbd_state state) |
|
void | drbd_bcast_ee (struct drbd_conf *mdev, const char *reason, const int dgs, const char *seen_hash, const char *calc_hash, const struct drbd_epoch_entry *e) |
|
void | drbd_bcast_sync_progress (struct drbd_conf *mdev) |
|
int __init | drbd_nl_init (void) |
|
void | drbd_nl_cleanup (void) |
|
#define NL_BIT |
( |
|
pn, |
|
|
|
pr, |
|
|
|
member |
|
) |
| |
Value:
arg->member = *(
char *)(
tags) ? 1 : 0; \
break;
Definition at line 122 of file drbd_nl.c.
#define NL_BIT |
( |
|
pn, |
|
|
|
pr, |
|
|
|
member |
|
) |
| |
Value:
put_unaligned(
sizeof(
char),
tags++); \
tags = (
unsigned short *)((
char *)
tags+
sizeof(
char));
Definition at line 122 of file drbd_nl.c.
#define NL_INT64 |
( |
|
pn, |
|
|
|
pr, |
|
|
|
member |
|
) |
| |
#define NL_INT64 |
( |
|
pn, |
|
|
|
pr, |
|
|
|
member |
|
) |
| |
Value:
put_unaligned(
sizeof(
u64),
tags++); \
tags = (
unsigned short *)((
char *)
tags+
sizeof(
u64));
Definition at line 117 of file drbd_nl.c.
#define NL_INTEGER |
( |
|
pn, |
|
|
|
pr, |
|
|
|
member |
|
) |
| |
#define NL_INTEGER |
( |
|
pn, |
|
|
|
pr, |
|
|
|
member |
|
) |
| |
Value:
put_unaligned(
sizeof(
int),
tags++); \
put_unaligned(
arg->member, (
int *)
tags); \
tags = (
unsigned short *)((
char *)
tags+
sizeof(
int));
Definition at line 112 of file drbd_nl.c.
Value:
{ \
\
fields \
default: \
return 0; \
} \
} \
tags = (
unsigned short *)((
char *)
tags +
dlen); \
} \
return 1; \
}
Definition at line 100 of file drbd_nl.c.
Value:static unsigned short* \
static unsigned short* \
{ \
fields \
}
Definition at line 100 of file drbd_nl.c.
#define NL_STRING |
( |
|
pn, |
|
|
|
pr, |
|
|
|
member, |
|
|
|
len |
|
) |
| |
Value:
dev_err(
DEV,
"arg too long: %s (%u wanted, max len: %u bytes)\n", \
#member,
dlen, (
unsigned int)len); \
return 0; \
} \
arg->member ## _len =
dlen; \
break;
Definition at line 127 of file drbd_nl.c.
#define NL_STRING |
( |
|
pn, |
|
|
|
pr, |
|
|
|
member, |
|
|
|
len |
|
) |
| |
Value:
put_unaligned(
arg->member ## _len,
tags++); \
tags = (
unsigned short *)((
char *)
tags +
arg->member ## _len);
Definition at line 127 of file drbd_nl.c.