summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* lddbus: Makefile: Declare LDDINC variable earlierLuis Ortega Perez de Villar2013-09-281-2/+3
| | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: lddbus.h: No such file or directory.
* scullv: main: Don't use create_proc_read_entry()Luis Ortega Perez de Villar2013-09-281-31/+25
| | | | | Don't use create_proc_read_entry() as it is deprecated, but rather use proc_create() and seq_file instead.
* scullv: Makefile: Declare LDDINC variable earlierLuis Ortega Perez de Villar2013-09-281-1/+2
| | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’.
* scullp: main: Don't use create_proc_read_entry()Luis Ortega Perez de Villar2013-09-281-31/+25
| | | | | Don't use create_proc_read_entry() as it is deprecated, but rather use proc_create() and seq_file instead.
* scullp: Makefile: Declare LDDINC variable earlierLuis Ortega Perez de Villar2013-09-281-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 Villar2013-09-281-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 earlierLuis Ortega Perez de Villar2013-09-281-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.10Javier Martinez Canillas2013-08-143-73/+73
|\ | | | | Scull updated for 3.10
| * scull: main | pipe : Fix coding styleLuis Ortega Perez de Villar2013-07-192-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 lineLuis Ortega Perez de Villar2013-07-191-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 Villar2013-07-192-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 earlierLuis Ortega Perez de Villar2013-07-181-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 realityJavier Martinez Canillas2013-04-271-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 changesJavier Martinez Canillas2013-04-271-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_structJavier Martinez Canillas2013-04-272-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 Canillas2013-04-261-2/+5
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* ldd3: get rid of deprecated VM_RESERVED vma flagJavier Martinez Canillas2013-04-265-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_openJavier Martinez Canillas2013-02-041-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/masterJavier Martinez Canillas2012-12-171-0/+29
|\ | | | | Add a .gitignore
| * Add a .gitignoreShulin2012-12-171-0/+29
|/ | | | Signed-off-by: Shulin <wangwangwar@gmail.com>
* usb-skeleton: Use pr_err() instead of deprecated err() macrov3.4Javier Martinez Canillas2012-05-061-7/+7
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* scull: Remove desintegrated asm/system.h headerJavier Martinez Canillas2012-05-061-1/+0
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* snull: use NETIF_F_HW_CSUM instead of NETIF_F_NO_CSUMv3.3.4Javier Martinez Canillas2012-05-061-1/+1
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* sbull: Update sbull_make_request function to make_request_fn new signatureJavier Martinez Canillas2012-05-061-1/+1
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* usb: usb-skeleton: Remove lock_kernelJavier Martinez Canillas2011-03-191-6/+0
|
* tty: tiny_tty: Remove struct file * argument from tty_operations handler ↵Javier Martinez Canillas2011-03-081-14/+14
| | | | functions
* scull: access: Replace old style lock initializerJavier Martinez Canillas2011-03-071-3/+3
| | | | SPIN_LOCK_UNLOCKED is deprecated. Use DEFINE_SPINLOCK instead.
* README: Add compiling sectionv2.6.37Javier Martinez Canillas2011-01-231-1/+25
|
* Merge branch 'master' of github.com:martinezjavier/ldd3Javier Martinez Canillas2011-01-080-0/+0
|\
| * README: Update project documentationJavier Martinez Canillas2011-01-061-5/+10
| |
| * sbull: Use blk_fetch_request instead blk_peek_request to dequeue requestsJavier Martinez Canillas2011-01-061-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 Canillas2011-01-051-1/+1
| | | | | | | | kobject_put(q->kobj) instead
| * tty: tiny_tty: Use seq_file instead read_procJavier Martinez Canillas2011-01-041-22/+17
| |
| * shortprint: Change handler function argument according current worqueue APIJavier Martinez Canillas2011-01-041-2/+2
| |
| * shortprint: Remove struct pt_regs argument from shortp_interrupt handlerJavier Martinez Canillas2011-01-041-2/+2
| |
| * simple: Change to new page fault APIJavier Martinez Canillas2011-01-031-6/+5
| |
| * short: Fix cast to meet workqueue handler signatureJavier Martinez Canillas2011-01-031-1/+1
| |
| * scullp: Change to new page fault APIJavier Martinez Canillas2011-01-031-7/+8
| |
| * scullv: Change to new page fault APIJavier Martinez Canillas2011-01-031-7/+8
| |
| * sculld: Change to new page fault APIJavier Martinez Canillas2011-01-031-7/+8
| |
| * lddbus: Remove non existing member owner in struct attributeJavier Martinez Canillas2011-01-031-1/+0
| |
| * tty: Use sema_init() instead init_MUTEX()Javier Martinez Canillas2011-01-031-1/+1
| |
| * sbull: Remove non existing blk_fs_request wrapperJavier Martinez Canillas2011-01-031-2/+2
| |
| * scullv: BKL ioctl pushdown API changeJavier Martinez Canillas2011-01-031-3/+2
| |
| * scullp: BLK ioctl pushdown API changeJavier Martinez Canillas2011-01-031-3/+2
| |
| * sculld: BLK ioctl pushdown API changeJavier Martinez Canillas2011-01-032-4/+3
| |
| * scull: Change scull_ioctl signatureJavier Martinez Canillas2011-01-031-2/+1
| |
| * scullc: BKL ioctl pushdown API changeJavier Martinez Canillas2011-01-031-3/+2
| |
| * scull: access: Use sema_ini() instead init_MUTEX()Javier Martinez Canillas2011-01-031-6/+6
| |
| * scull: pipe: Use sema_init() instead init_MUTEX()Javier Martinez Canillas2011-01-031-1/+1
| |