#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/blktrace_api.h>
#include "blk.h"
#include "blk-cgroup.h"
Go to the source code of this file.
Value:static ssize_t \
{ \
return queue_var_show(
neg ? !bit : bit,
page); \
} \
static ssize_t \
{ \
\
spin_lock_irq(
q->queue_lock); \
if (val) \
queue_flag_set(QUEUE_FLAG_##
flag,
q); \
else \
queue_flag_clear(QUEUE_FLAG_##
flag,
q); \
spin_unlock_irq(
q->queue_lock); \
}
Definition at line 218 of file blk-sysfs.c.
int blk_register_queue |
( |
struct gendisk * |
disk | ) |
|
void blk_unregister_queue |
( |
struct gendisk * |
disk | ) |
|
QUEUE_SYSFS_BIT_FNS |
( |
nonrot |
, |
|
|
NONROT |
, |
|
|
1 |
|
|
) |
| |
QUEUE_SYSFS_BIT_FNS |
( |
random |
, |
|
|
ADD_RANDOM |
, |
|
|
0 |
|
|
) |
| |
QUEUE_SYSFS_BIT_FNS |
( |
iostats |
, |
|
|
IO_STAT |
, |
|
|
0 |
|
|
) |
| |
Initial value:= {
.sysfs_ops = &queue_sysfs_ops,
.default_attrs = default_attrs,
.release = blk_release_queue,
}
Definition at line 549 of file blk-sysfs.c.