Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | scullp: Makefile: Declare LDDINC variable earlier | Luis Ortega Perez de Villar | 2013-09-28 | 1 | -1/+2 | |
| | | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’. | |||||
* | scullc: main: Don't use create_proc_read_entry() | Luis Ortega Perez de Villar | 2013-09-28 | 1 | -31/+25 | |
| | | | | | Don't use create_proc_read_entry() as it is deprecated, but rather use proc_create() and seq_file instead. | |||||
* | scullc: Makefile: Declare LDDINC variable earlier | Luis Ortega Perez de Villar | 2013-09-28 | 1 | -1/+2 | |
| | | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’. | |||||
* | Merge pull request #3 from luiorpe1/scull-3.10 | Javier Martinez Canillas | 2013-08-14 | 3 | -73/+73 | |
|\ | | | | | Scull updated for 3.10 | |||||
| * | scull: main | pipe : Fix coding style | Luis Ortega Perez de Villar | 2013-07-19 | 2 | -32/+32 | |
| | | | | | | | | | | Replace white space indentation introduced with the previous patch with 8 characters width TABs to comply with the kernel coding style. | |||||
| * | scull: pipe: Remove unused commented line | Luis Ortega Perez de Villar | 2013-07-19 | 1 | -1/+0 | |
| | | | | | | | | | | Remove commented line with deprecated create_proc_read_entry call that was forgotten to remove. | |||||
| * | Don't use create_proc_entry() and create_proc_read_entry() | Luis Ortega Perez de Villar | 2013-07-19 | 2 | -78/+77 | |
| | | | | | | | | | | | | Don't use create_proc_entry() and create_proc_read_entry() as they are deprecated, but rather use proc_create() and proc_create_data() respectively and seq_file instead. | |||||
| * | scull: Makefile: Declare LDDINC variable earlier | Luis Ortega Perez de Villar | 2013-07-18 | 1 | -1/+3 | |
|/ | | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’. | |||||
* | README: update project goal according to reality | Javier Martinez Canillas | 2013-04-27 | 1 | -20/+4 | |
| | | | | | | | | | | | | | | | | | | | | | | | | The initial goal of this project was to update the LDD3 example drivers to recent kernels so they can be used by students to learn about driver development under Linux. The idea was to not only update the drivers but also add new drivers that show newer kernel facilities that did not exist (or was not common) by the time the LDD3 book was written. Unfortunately I haven't had time to work on this for years so it's better to just try to keep the current drivers building and working. Also, only maintain the master branch that should track Linus master tree. Anyone that is interested on kernel hacking should develop against the latest master tree anyways. If someone needs to use an older kernel version it shouldn't be hard to figure out what commit id could be used for any specific kernel version. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> | |||||
* | tty: update termios access due tty_struct changes | Javier Martinez Canillas | 2013-04-27 | 1 | -2/+2 | |
| | | | | | | | | | | commit adc8d746 ("tty: move the termios object into the tty") moved the struct ktermios inside struct tty_struct instead of keeping just a pointer to it. So, let's update the access to termios according to this change. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> | |||||
* | tty: pass tty_port to tty functions instead of tty_struct | Javier Martinez Canillas | 2013-04-27 | 2 | -6/+11 | |
| | | | | | | | | | | commit 227434f8 ("TTY: switch tty_buffer_request_room to tty_port") started to convert all tty functions to receive a tty_port instead of a tt_struct. Update the drivers according this API change. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> | |||||
* | usb: usb-skeleton: use dev_dbg() instead deprecated dbg() | Javier Martinez Canillas | 2013-04-26 | 1 | -2/+5 | |
| | | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> | |||||
* | ldd3: get rid of deprecated VM_RESERVED vma flag | Javier Martinez Canillas | 2013-04-26 | 5 | -10/+0 | |
| | | | | | | | | | | | | | | commit 314e51b9 ("mm: kill vma flag VM_RESERVED and mm->reserved_vm counter") removed the VM_RESERVED vma flag since it lost original meaning. VM_RESERVED was used on many drivers' mmap function handler to avoid swap this memory area. The same semantic can be specified with VM_IO | VM_DONTDUMP flags but these are already set by remap_pfn_range() so they don't have to be set in drivers mmap function handlers. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> | |||||
* | simple: use libfs simple_open | Javier Martinez Canillas | 2013-02-04 | 1 | -8/+0 | |
| | | | | | | | libfs now has a simple_open handler functions that is a noop. So, is better to use this instead of a custom implementation. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> | |||||
* | Merge pull request #1 from wangwangwar/master | Javier Martinez Canillas | 2012-12-17 | 1 | -0/+29 | |
|\ | | | | | Add a .gitignore | |||||
| * | Add a .gitignore | Shulin | 2012-12-17 | 1 | -0/+29 | |
|/ | | | | Signed-off-by: Shulin <wangwangwar@gmail.com> | |||||
* | usb-skeleton: Use pr_err() instead of deprecated err() macrov3.4 | Javier Martinez Canillas | 2012-05-06 | 1 | -7/+7 | |
| | | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> | |||||
* | scull: Remove desintegrated asm/system.h header | Javier Martinez Canillas | 2012-05-06 | 1 | -1/+0 | |
| | | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> | |||||
* | snull: use NETIF_F_HW_CSUM instead of NETIF_F_NO_CSUMv3.3.4 | Javier Martinez Canillas | 2012-05-06 | 1 | -1/+1 | |
| | | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> | |||||
* | sbull: Update sbull_make_request function to make_request_fn new signature | Javier Martinez Canillas | 2012-05-06 | 1 | -1/+1 | |
| | | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> | |||||
* | usb: usb-skeleton: Remove lock_kernel | Javier Martinez Canillas | 2011-03-19 | 1 | -6/+0 | |
| | ||||||
* | tty: tiny_tty: Remove struct file * argument from tty_operations handler ↵ | Javier Martinez Canillas | 2011-03-08 | 1 | -14/+14 | |
| | | | | functions | |||||
* | scull: access: Replace old style lock initializer | Javier Martinez Canillas | 2011-03-07 | 1 | -3/+3 | |
| | | | | SPIN_LOCK_UNLOCKED is deprecated. Use DEFINE_SPINLOCK instead. | |||||
* | README: Add compiling sectionv2.6.37 | Javier Martinez Canillas | 2011-01-23 | 1 | -1/+25 | |
| | ||||||
* | Merge branch 'master' of github.com:martinezjavier/ldd3 | Javier Martinez Canillas | 2011-01-08 | 0 | -0/+0 | |
|\ | ||||||
| * | README: Update project documentation | Javier Martinez Canillas | 2011-01-06 | 1 | -5/+10 | |
| | | ||||||
| * | sbull: Use blk_fetch_request instead blk_peek_request to dequeue requests | Javier Martinez Canillas | 2011-01-06 | 1 | -9/+6 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The block layer request API changes make a requirement for block drivers to dequeue requests before signal its completition. Commit 1dfd4ab138fc9f9cad869e6110022c7cfd5544d1 changed sbull to use the new block layer API. But the patch only renamed the functions while keeping the old driver semantics. It used blk_peek_request() that does the same that elv_next_request() did. Remove the request from the queue before is not only a recomendation but a true requirement. Attempting to complete a request that remains in the queue make the kernel oops. So the last commit introduced a Bug. This patch uses blk_fetch_request() instead of blk_peek_request(). blk_fetch_request() not only returns the request in the head of the queue but also removes the request from the queue so a latter signaling of the request completition doesn't hang the system. | |||||
| * | sbull: blk_put_queue() is not an exported symbol anymore. Use ↵ | Javier Martinez Canillas | 2011-01-05 | 1 | -1/+1 | |
| | | | | | | | | kobject_put(q->kobj) instead | |||||
| * | tty: tiny_tty: Use seq_file instead read_proc | Javier Martinez Canillas | 2011-01-04 | 1 | -22/+17 | |
| | | ||||||
| * | shortprint: Change handler function argument according current worqueue API | Javier Martinez Canillas | 2011-01-04 | 1 | -2/+2 | |
| | | ||||||
| * | shortprint: Remove struct pt_regs argument from shortp_interrupt handler | Javier Martinez Canillas | 2011-01-04 | 1 | -2/+2 | |
| | | ||||||
| * | simple: Change to new page fault API | Javier Martinez Canillas | 2011-01-03 | 1 | -6/+5 | |
| | | ||||||
| * | short: Fix cast to meet workqueue handler signature | Javier Martinez Canillas | 2011-01-03 | 1 | -1/+1 | |
| | | ||||||
| * | scullp: Change to new page fault API | Javier Martinez Canillas | 2011-01-03 | 1 | -7/+8 | |
| | | ||||||
| * | scullv: Change to new page fault API | Javier Martinez Canillas | 2011-01-03 | 1 | -7/+8 | |
| | | ||||||
| * | sculld: Change to new page fault API | Javier Martinez Canillas | 2011-01-03 | 1 | -7/+8 | |
| | | ||||||
| * | lddbus: Remove non existing member owner in struct attribute | Javier Martinez Canillas | 2011-01-03 | 1 | -1/+0 | |
| | | ||||||
| * | tty: Use sema_init() instead init_MUTEX() | Javier Martinez Canillas | 2011-01-03 | 1 | -1/+1 | |
| | | ||||||
| * | sbull: Remove non existing blk_fs_request wrapper | Javier Martinez Canillas | 2011-01-03 | 1 | -2/+2 | |
| | | ||||||
| * | scullv: BKL ioctl pushdown API change | Javier Martinez Canillas | 2011-01-03 | 1 | -3/+2 | |
| | | ||||||
| * | scullp: BLK ioctl pushdown API change | Javier Martinez Canillas | 2011-01-03 | 1 | -3/+2 | |
| | | ||||||
| * | sculld: BLK ioctl pushdown API change | Javier Martinez Canillas | 2011-01-03 | 2 | -4/+3 | |
| | | ||||||
| * | scull: Change scull_ioctl signature | Javier Martinez Canillas | 2011-01-03 | 1 | -2/+1 | |
| | | ||||||
| * | scullc: BKL ioctl pushdown API change | Javier Martinez Canillas | 2011-01-03 | 1 | -3/+2 | |
| | | ||||||
| * | scull: access: Use sema_ini() instead init_MUTEX() | Javier Martinez Canillas | 2011-01-03 | 1 | -6/+6 | |
| | | ||||||
| * | scull: pipe: Use sema_init() instead init_MUTEX() | Javier Martinez Canillas | 2011-01-03 | 1 | -1/+1 | |
| | | ||||||
| * | scull: pipe: BKL ioctl pushdown API change | Javier Martinez Canillas | 2011-01-03 | 1 | -1/+1 | |
| | | ||||||
| * | scull: BKL ioctl pushdown API change and use sema_init() instead init_MUTEX() | Javier Martinez Canillas | 2011-01-03 | 2 | -6/+5 | |
| | | ||||||
| * | usb-skeleton: Use usb_[alloc|free]_coherent instead of usb_buffer_[alloc|free] | Javier Martinez Canillas | 2011-01-02 | 1 | -3/+3 | |
| | | ||||||
* | | lddbus: Remove non existing member owner in struct attribute | Javier Martinez Canillas | 2011-01-08 | 1 | -1/+0 | |
| | |