| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
Move the definition of LDDINC earlier into the file. This prevents the
following compile time error: lddbus.h: No such file or directory.
|
|
|
|
|
| |
Don't use create_proc_read_entry() as it is deprecated,
but rather use proc_create() and seq_file instead.
|
|
|
|
|
| |
Move the definition of LDDINC earlier into the file. This prevents the
following compile time error: implicit declaration of function ‘KBUILD_STR’.
|
|
|
|
|
| |
Don't use create_proc_read_entry() as it is deprecated,
but rather use proc_create() and seq_file instead.
|
|
|
|
|
| |
Move the definition of LDDINC earlier into the file. This prevents the
following compile time error: implicit declaration of function ‘KBUILD_STR’.
|
|
|
|
|
| |
Don't use create_proc_read_entry() as it is deprecated,
but rather use proc_create() and seq_file instead.
|
|
|
|
|
| |
Move the definition of LDDINC earlier into the file. This prevents the
following compile time error: implicit declaration of function ‘KBUILD_STR’.
|
|\
| |
| | |
Scull updated for 3.10
|
| |
| |
| |
| |
| | |
Replace white space indentation introduced with the previous patch
with 8 characters width TABs to comply with the kernel coding style.
|
| |
| |
| |
| |
| | |
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() as they
are deprecated, but rather use proc_create() and proc_create_data()
respectively and seq_file instead.
|
|/
|
|
|
| |
Move the definition of LDDINC earlier into the file. This prevents the
following compile time error: implicit declaration of function ‘KBUILD_STR’.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|\
| |
| | |
Add a .gitignore
|
|/
|
|
| |
Signed-off-by: Shulin <wangwangwar@gmail.com>
|
|
|
|
| |
Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
|
|
|
|
| |
Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
|
|
|
|
| |
Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
|
|
|
|
| |
Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
|
| |
|
|
|
|
| |
functions
|
|
|
|
| |
SPIN_LOCK_UNLOCKED is deprecated. Use DEFINE_SPINLOCK instead.
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
kobject_put(q->kobj) instead
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|