Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286171
b: refs/heads/master
c: 7c7c7f0
h: refs/heads/master
i:
  286169: 5c40b2b
  286167: 647da50
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed Jan 13, 2012
1 parent 0ef576f commit 259eb61
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 252c3d84ed398b090ac2dace46fc6faa6cfaea99
refs/heads/master: 7c7c7f01cc5e3e423120a4848a73dd5e4586f2f9
3 changes: 3 additions & 0 deletions trunk/Documentation/devices.txt
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@ Your cooperation is appreciated.
234 = /dev/btrfs-control Btrfs control device
235 = /dev/autofs Autofs control device
236 = /dev/mapper/control Device-Mapper control device
237 = /dev/loop-control Loopback control device
238 = /dev/vhost-net Host kernel accelerator for virtio net

240-254 Reserved for local use
255 Reserved for MISC_DYNAMIC_MINOR

Expand Down
8 changes: 5 additions & 3 deletions trunk/drivers/vhost/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -856,9 +856,9 @@ static const struct file_operations vhost_net_fops = {
};

static struct miscdevice vhost_net_misc = {
MISC_DYNAMIC_MINOR,
"vhost-net",
&vhost_net_fops,
.minor = VHOST_NET_MINOR,
.name = "vhost-net",
.fops = &vhost_net_fops,
};

static int vhost_net_init(void)
Expand All @@ -879,3 +879,5 @@ MODULE_VERSION("0.0.1");
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Michael S. Tsirkin");
MODULE_DESCRIPTION("Host kernel accelerator for virtio net");
MODULE_ALIAS_MISCDEV(VHOST_NET_MINOR);
MODULE_ALIAS("devname:vhost-net");
1 change: 1 addition & 0 deletions trunk/include/linux/miscdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#define AUTOFS_MINOR 235
#define MAPPER_CTRL_MINOR 236
#define LOOP_CTRL_MINOR 237
#define VHOST_NET_MINOR 238
#define MISC_DYNAMIC_MINOR 255

struct device;
Expand Down

0 comments on commit 259eb61

Please sign in to comment.