diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-09-04 14:55:44 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-09-04 14:55:44 +1000 |
commit | 15582d855fcc2010a983e264ede2d5e5bdea3f20 (patch) | |
tree | bad19340f5b869b99708b5b2202636cfc4bb4ae6 /include/net/9p/transport.h | |
parent | 1d5ddd8c03eb0f820f6c91c4d717c1f8f7ce0e03 (diff) | |
parent | a7ced862d955c891507e6664fe9f1206d7dae8b5 (diff) |
Merge commit 'v9fs/for-next'
Diffstat (limited to 'include/net/9p/transport.h')
-rw-r--r-- | include/net/9p/transport.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/net/9p/transport.h b/include/net/9p/transport.h index 0db3a4038dc0..3ca737120a90 100644 --- a/include/net/9p/transport.h +++ b/include/net/9p/transport.h @@ -26,6 +26,8 @@ #ifndef NET_9P_TRANSPORT_H #define NET_9P_TRANSPORT_H +#include <linux/module.h> + /** * enum p9_trans_status - different states of underlying transports * @Connected: transport is connected and healthy @@ -91,9 +93,12 @@ struct p9_trans_module { int maxsize; /* max message size of transport */ int def; /* this transport should be default */ struct p9_trans * (*create)(const char *, char *, int, unsigned char); + struct module *owner; }; void v9fs_register_trans(struct p9_trans_module *m); -struct p9_trans_module *v9fs_match_trans(const substring_t *name); -struct p9_trans_module *v9fs_default_trans(void); +void v9fs_unregister_trans(struct p9_trans_module *m); +struct p9_trans_module *v9fs_get_trans_by_name(const substring_t *name); +struct p9_trans_module *v9fs_get_default_trans(void); +void v9fs_put_trans(struct p9_trans_module *m); #endif /* NET_9P_TRANSPORT_H */ |