struct portals_handle {
struct list_head h_link;
__u64 h_cookie;
- const void *h_owner;
- struct portals_handle_ops *h_ops;
+ const struct portals_handle_ops *h_ops;
/* newly added fields to handle the RCU issue. -jxiong */
struct rcu_head h_rcu;
/* Add a handle to the hash table */
void class_handle_hash(struct portals_handle *,
- struct portals_handle_ops *ops);
+ const struct portals_handle_ops *ops);
void class_handle_unhash(struct portals_handle *);
-void *class_handle2object(__u64 cookie, const void *owner);
+void *class_handle2object(u64 cookie, const struct portals_handle_ops *ops);
void class_handle_free_cb(struct rcu_head *rcu);
int class_handle_init(void);
void class_handle_cleanup(void);