- 09 Jan, 2003 8 commits
-
-
Patrick Mochel authored
Remove @count and @off parameters from show() and store() callbacks.
-
Patrick Mochel authored
Remove @count and @off parameters from show() methods.
-
Patrick Mochel authored
Remove @off and @count from the sysfs_ops, and the core attribute methods.
-
Patrick Mochel authored
Remove @count and @off parameters from show() and store() methods.
-
Patrick Mochel authored
Remove @count and @off parameters from all show() and store() methods for sysfs attribute files.
-
Patrick Mochel authored
The previous sysfs change implies that the show() and store() methods in struct sysfs_ops are called only once, during the first read() or write(). This means that off is always 0, and count should always be PAGE_SIZE, to fill or clear the entire buffer in one shot. Therefore, those parameters can be removed from all attribute read/write methods. This changeset removes them from the definition and fixes sysfs to deal with that appropriately.
-
Patrick Mochel authored
These are sysfs internal changes only, though they have positive external effects. A new data type (struct sysfs_buffer) is defined to describe and maintain state of the data for an attribute file. This object is allocated and initialized when the file is opened. It contains a page-sized buffer that is allocated during the first read or write. For read(), the buffer is filled when it is allocated by calling the attribute's show() method. This only happens when a read occurs from offset 0 in the file. For all read()s, the portion of the file requested is copied to userspace. This finally fixes a long-standing bug in partial read()s. For write(), the buffer is filled when it is allocated by copying the user- supplied buffer from userspace into it. This buffer is then passed to the attribute's store() method. This is not much different than what was present before. Note that partial-writes are not-supported. There is no way to know if a user process is doing a partial write, and has more buffer to write. So, we take the easy route and assume that the entire buffer is passed during the first write.
-
Patrick Mochel authored
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-core
-
- 08 Jan, 2003 32 commits
-
-
Linus Torvalds authored
-
Dave Jones authored
-
Dave Jones authored
Since we killed off the broken 486 strings copies, the config item isn't needed any longer.
-
Dave Jones authored
Next in line for the -W cleanups is this patch from Willy which I've been carrying since 2.5.29 or so. Should be no functional differences, just no more warnings when we compile with -W
-
Dave Jones authored
s/boundry/boundary/
-
Dave Jones authored
-
Dave Jones authored
Without this fix, compiling with CONFIG_DEBUG_SPINLOCK dies with an unknown variable error..
-
Dave Jones authored
This looks extremely suspect to me, and seems like it will prefetch past the end of the pmd, which is a no no.
-
Dave Jones authored
-
Dave Jones authored
Can't remember where this came from, but its been around for quite a while. Prints the parent (tracer) pid if its being traced.
-
Dave Jones authored
The first of many... From 2.4
-
Dave Jones authored
Silly typo caused strange corruption. With this fixed, agpgart almost works again on x86-64 (change_page_attr() seems broken there)
-
Dave Jones authored
From 2.4
-
Dave Jones authored
Cset 1.808 in 2.4 never got propagated forward to 2.5 It's pretty much the same fix as below (s/!=/</), but with the following changes - This was a patch to pci_alloc_consistant(), which now wants to be dma_alloc_coherent() - Removal of the u32 cast
-
Dave Jones authored
Missed forward port from 2.4. ACKed by GregKH
-
Dave Jones authored
-
Dave Jones authored
From 2.4
-
Dave Jones authored
-
Dave Jones authored
From 2.4, and munged.
-
Dave Jones authored
From 2.4
-
Dave Jones authored
Fix incorrect CONFIG_ name
-
Dave Jones authored
From 2.4 a few months back. With a few edits by myself to remove the wacky bits of the diff that backed out fixes. (*Sigh*, Intel).
-
Dave Jones authored
Been carrying this for ages.. From Jens Axboe: This is for changers, we may need more than the default 5 second timeout for loading a disc since it may require moving stuff around :)
-
Dave Jones authored
From Jens Axboe: Only fall back to plain READ, if the device says it doesn't support the READ_CD opcode. This is the true error for which we want to do the fall back, not for any generic error.
-
Dave Jones authored
Missing macro header.
-
Linus Torvalds authored
-
Patrick Mochel authored
Third time's a charm.. This moves the kobject_unregister() call to after the out: label, making sure it always gets unregistered. It wasn't if if (dev->features & NETIF_F_DYNALLOC) was true (which it is for PPP devices), causing re-registration of devices to fail.
-
Gerd Knorr authored
This updates the saa7134 driver. It adds support for a few more cards and includes adaptions to the video-buf.c changes sent earlier.
-
Gerd Knorr authored
This has some i2c adaptions and cleanups for the tv card tuner module.
-
Gerd Knorr authored
This updates a bunch of i2c modules in drivers/media/video. Most of it are adaptions to the recent i2c changes in the kernel. While being at it I also did some other cleanups like deleting unused+dead code, using name-based initialization for some not-yet converted structs, ... The also has a few small fixes here and there, but no major functional changes.
-
Gerd Knorr authored
This adds a driver module for the bt832 chip. It is needed by the bttv driver to support the Pixelview Digital Camera. The bt832 is connected using the GPIO pins of the bt878 chip.
-
Gerd Knorr authored
-