rtlx.c (e6bca5a6a8a0cdc41a9e1e3e69bc8476ac6a8ed4) | rtlx.c (b90b3802624e1f2a509f3e9f39775d94ec4762d7) |
---|---|
1/* 2 * Copyright (C) 2005 MIPS Technologies, Inc. All rights reserved. 3 * Copyright (C) 2005, 06 Ralf Baechle (ralf@linux-mips.org) 4 * 5 * This program is free software; you can distribute it and/or modify it 6 * under the terms of the GNU General Public License (Version 2) as 7 * published by the Free Software Foundation. 8 * --- 423 unchanged lines hidden (view full) --- 432 433 return rtlx_read(minor, buffer, count); 434} 435 436static ssize_t file_write(struct file *file, const char __user * buffer, 437 size_t count, loff_t * ppos) 438{ 439 int minor = iminor(file_inode(file)); | 1/* 2 * Copyright (C) 2005 MIPS Technologies, Inc. All rights reserved. 3 * Copyright (C) 2005, 06 Ralf Baechle (ralf@linux-mips.org) 4 * 5 * This program is free software; you can distribute it and/or modify it 6 * under the terms of the GNU General Public License (Version 2) as 7 * published by the Free Software Foundation. 8 * --- 423 unchanged lines hidden (view full) --- 432 433 return rtlx_read(minor, buffer, count); 434} 435 436static ssize_t file_write(struct file *file, const char __user * buffer, 437 size_t count, loff_t * ppos) 438{ 439 int minor = iminor(file_inode(file)); |
440 struct rtlx_channel *rt = &rtlx->channel[minor]; | |
441 442 /* any space left... */ 443 if (!rtlx_write_poll(minor)) { 444 int ret = 0; 445 446 if (file->f_flags & O_NONBLOCK) 447 return -EAGAIN; 448 --- 110 unchanged lines hidden --- | 440 441 /* any space left... */ 442 if (!rtlx_write_poll(minor)) { 443 int ret = 0; 444 445 if (file->f_flags & O_NONBLOCK) 446 return -EAGAIN; 447 --- 110 unchanged lines hidden --- |