diff options
author | Sainath Grandhi <sainath.grandhi@intel.com> | 2017-02-11 03:03:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-12 04:59:41 +0300 |
commit | ebc05ba7e8600b52a2a0c87a43105143368aca2a (patch) | |
tree | de9da1f26aa63eb1bea5b6f01b85fcd3fc26cade /include | |
parent | 635b8c8ecdd27142d7fdab0df334b2e9201481cf (diff) | |
download | linux-ebc05ba7e8600b52a2a0c87a43105143368aca2a.tar.xz |
tap: Tap character device creation/destroy API
This patch provides tap device create/destroy APIs in tap.c.
Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/if_tap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/if_tap.h b/include/linux/if_tap.h index 97d27b8ebd55..a2dfd9063a6c 100644 --- a/include/linux/if_tap.h +++ b/include/linux/if_tap.h @@ -19,5 +19,8 @@ void tap_del_queues(struct net_device *dev); int tap_get_minor(struct macvlan_dev *vlan); void tap_free_minor(struct macvlan_dev *vlan); int tap_queue_resize(struct macvlan_dev *vlan); +int tap_create_cdev(struct cdev *tap_cdev, + dev_t *tap_major, const char *device_name); +void tap_destroy_cdev(dev_t major, struct cdev *tap_cdev); #endif /*_LINUX_IF_TAP_H_*/ |