.. | .. |
---|
83 | 83 | struct user_evtchn { |
---|
84 | 84 | struct rb_node node; |
---|
85 | 85 | struct per_user_data *user; |
---|
86 | | - unsigned port; |
---|
| 86 | + evtchn_port_t port; |
---|
87 | 87 | bool enabled; |
---|
88 | 88 | }; |
---|
89 | 89 | |
---|
.. | .. |
---|
138 | 138 | kfree(evtchn); |
---|
139 | 139 | } |
---|
140 | 140 | |
---|
141 | | -static struct user_evtchn *find_evtchn(struct per_user_data *u, unsigned port) |
---|
| 141 | +static struct user_evtchn *find_evtchn(struct per_user_data *u, |
---|
| 142 | + evtchn_port_t port) |
---|
142 | 143 | { |
---|
143 | 144 | struct rb_node *node = u->evtchns.rb_node; |
---|
144 | 145 | |
---|
.. | .. |
---|
163 | 164 | struct per_user_data *u = evtchn->user; |
---|
164 | 165 | |
---|
165 | 166 | WARN(!evtchn->enabled, |
---|
166 | | - "Interrupt for port %d, but apparently not enabled; per-user %p\n", |
---|
| 167 | + "Interrupt for port %u, but apparently not enabled; per-user %p\n", |
---|
167 | 168 | evtchn->port, u); |
---|
168 | 169 | |
---|
169 | 170 | evtchn->enabled = false; |
---|
.. | .. |
---|
285 | 286 | mutex_lock(&u->bind_mutex); |
---|
286 | 287 | |
---|
287 | 288 | for (i = 0; i < (count/sizeof(evtchn_port_t)); i++) { |
---|
288 | | - unsigned port = kbuf[i]; |
---|
| 289 | + evtchn_port_t port = kbuf[i]; |
---|
289 | 290 | struct user_evtchn *evtchn; |
---|
290 | 291 | |
---|
291 | 292 | evtchn = find_evtchn(u, port); |
---|
.. | .. |
---|
360 | 361 | return 0; |
---|
361 | 362 | } |
---|
362 | 363 | |
---|
363 | | -static int evtchn_bind_to_user(struct per_user_data *u, int port) |
---|
| 364 | +static int evtchn_bind_to_user(struct per_user_data *u, evtchn_port_t port) |
---|
364 | 365 | { |
---|
365 | 366 | struct user_evtchn *evtchn; |
---|
366 | 367 | struct evtchn_close close; |
---|
.. | .. |
---|
422 | 423 | |
---|
423 | 424 | static DEFINE_PER_CPU(int, bind_last_selected_cpu); |
---|
424 | 425 | |
---|
425 | | -static void evtchn_bind_interdom_next_vcpu(int evtchn) |
---|
| 426 | +static void evtchn_bind_interdom_next_vcpu(evtchn_port_t evtchn) |
---|
426 | 427 | { |
---|
427 | 428 | unsigned int selected_cpu, irq; |
---|
428 | 429 | struct irq_desc *desc; |
---|
.. | .. |
---|
663 | 664 | |
---|
664 | 665 | filp->private_data = u; |
---|
665 | 666 | |
---|
666 | | - return nonseekable_open(inode, filp); |
---|
| 667 | + return stream_open(inode, filp); |
---|
667 | 668 | } |
---|
668 | 669 | |
---|
669 | 670 | static int evtchn_release(struct inode *inode, struct file *filp) |
---|