13 #include <linux/module.h>
14 #include <linux/poll.h>
16 #include <linux/sched.h>
17 #include <linux/slab.h>
19 #include <linux/kernel.h>
62 put_log_buffer(card, buf);
90 put_log_buffer(card, pd->
logtmp);
130 spin_unlock_irqrestore(&card->
hysdn_lock, flags);
135 if ((pd->
log_head->usage_cnt <= 0) &&
136 (pd->
log_head->next->usage_cnt <= 0)) {
156 hysdn_log_write(
struct file *
file,
const char __user *
buf,
size_t count, loff_t *off)
172 hysdn_log_read(
struct file *file,
char __user *buf,
size_t count, loff_t *off)
216 hysdn_log_open(
struct inode *
ino,
struct file *filep)
226 if (pd->
log == PDE(ino))
247 spin_unlock_irqrestore(&card->
hysdn_lock, flags);
264 hysdn_log_close(
struct inode *ino,
struct file *filep)
287 if (pd->
log == PDE(ino))
321 unsigned int mask = 0;
340 poll_wait(file, &(pd->
rd_queue), wait);
355 .read = hysdn_log_read,
356 .write = hysdn_log_write,
357 .poll = hysdn_log_poll,
358 .open = hysdn_log_open,
359 .release = hysdn_log_close,