Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
partition-generic.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/kmod.h>
#include <linux/ctype.h>
#include <linux/genhd.h>
#include <linux/blktrace_api.h>
#include "partitions/check.h"

Go to the source code of this file.

Functions

chardisk_name (struct gendisk *hd, int partno, char *buf)
 
const charbdevname (struct block_device *bdev, char *buf)
 
 EXPORT_SYMBOL (bdevname)
 
const char__bdevname (dev_t dev, char *buffer)
 
 EXPORT_SYMBOL (__bdevname)
 
ssize_t part_size_show (struct device *dev, struct device_attribute *attr, char *buf)
 
ssize_t part_stat_show (struct device *dev, struct device_attribute *attr, char *buf)
 
ssize_t part_inflight_show (struct device *dev, struct device_attribute *attr, char *buf)
 
void __delete_partition (struct hd_struct *part)
 
void delete_partition (struct gendisk *disk, int partno)
 
struct hd_struct * add_partition (struct gendisk *disk, int partno, sector_t start, sector_t len, int flags, struct partition_meta_info *info)
 
int rescan_partitions (struct gendisk *disk, struct block_device *bdev)
 
int invalidate_partitions (struct gendisk *disk, struct block_device *bdev)
 
unsigned charread_dev_sector (struct block_device *bdev, sector_t n, Sector *p)
 
 EXPORT_SYMBOL (read_dev_sector)
 

Variables

struct device_type part_type
 

Function Documentation

const char* __bdevname ( dev_t  dev,
char buffer 
)

Definition at line 58 of file partition-generic.c.

void __delete_partition ( struct hd_struct *  part)

Definition at line 235 of file partition-generic.c.

struct hd_struct* add_partition ( struct gendisk *  disk,
int  partno,
sector_t  start,
sector_t  len,
int  flags,
struct partition_meta_info *  info 
)
read

Definition at line 269 of file partition-generic.c.

const char* bdevname ( struct block_device bdev,
char buf 
)

Definition at line 46 of file partition-generic.c.

void delete_partition ( struct gendisk *  disk,
int  partno 
)

Definition at line 240 of file partition-generic.c.

char* disk_name ( struct gendisk *  hd,
int  partno,
char buf 
)

Definition at line 34 of file partition-generic.c.

EXPORT_SYMBOL ( bdevname  )
EXPORT_SYMBOL ( __bdevname  )
EXPORT_SYMBOL ( read_dev_sector  )
int invalidate_partitions ( struct gendisk *  disk,
struct block_device bdev 
)

Definition at line 532 of file partition-generic.c.

ssize_t part_inflight_show ( struct device dev,
struct device_attribute attr,
char buf 
)

Definition at line 138 of file partition-generic.c.

ssize_t part_size_show ( struct device dev,
struct device_attribute attr,
char buf 
)

Definition at line 83 of file partition-generic.c.

ssize_t part_stat_show ( struct device dev,
struct device_attribute attr,
char buf 
)

Definition at line 111 of file partition-generic.c.

unsigned char* read_dev_sector ( struct block_device bdev,
sector_t  n,
Sector *  p 
)

Definition at line 552 of file partition-generic.c.

int rescan_partitions ( struct gendisk *  disk,
struct block_device bdev 
)

Definition at line 414 of file partition-generic.c.

Variable Documentation

struct device_type part_type
Initial value:
= {
.name = "partition",
.groups = part_attr_groups,
.release = part_release,
}

Definition at line 219 of file partition-generic.c.