On Mon, Dec 7, 2009 at 8:56 AM, Mark Brown
wrote:
>
>> One of the things we're facing is Android, which has
>> its userspace in plain Java JNI at the end of this link:
>> http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=s
>> ervices/jni/com_android_server_BatteryService.cpp;h
On Mon, 07 Dec 2009 02:25:08 +
Phillip Lougher wrote:
> +void *zlib_init()
> ...
> +void zlib_free(void *strm)
More poorly-named globals.
--
To unsubscribe from this list: send the line "unsubscribe linux-embedded" in
the body of a message to majord...@vger.kernel.org
More majordomo info at
On Mon, 07 Dec 2009 02:25:08 +
Phillip Lougher wrote:
> +++ b/fs/squashfs/zlib_wrapper.c
> @@ -0,0 +1,109 @@
> +/*
> + * Squashfs - a compressed read only filesystem for Linux
> + *
> + * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
> + * Phillip Lougher
> + *
> + * This prog
On Mon, Dec 07, 2009 at 03:07:15PM +0100, Linus Walleij wrote:
> [Mark wrote]
> > These files should only be present if we have data for them.
> > Userspace can't be reliant on them at present since relatively few
> > systems seem to implement them, for example none of my laptops
> > have time_
Thanks for all the great attention Mark!
[Mark wrote]
> On Sat, Dec 05, 2009 at 02:08:11PM +0100, Linus Walleij wrote:
> > (...)
> > That's an easy solution of course, but then the sysfs files
> > specified by the power subsystem, i.e. all "charge_*",
> > "energy_*", "capacity" and "time_to_*" loo
On Sat, Dec 05, 2009 at 02:08:11PM +0100, Linus Walleij wrote:
> [Mark Brown]
> > Isn't the standard thing here to handle this voltage to
> > capacity mapping in userspace if we're just extrapolating
> > from experimental results?
> That's an easy solution of course, but then the sysfs files
> s
Add a config option DECOMPRESS_LZMA_NEEDED which allows subsystems to
specify they need the unlzma code. Normally decompress_unlzma.c is
compiled with __init and unlzma is not exported to modules.
Move INIT definition into separate header files for bzip2/lzma/inflate
so it can be defined differe
Signed-off-by: Phillip Lougher
---
fs/squashfs/Kconfig|5 ++
fs/squashfs/Makefile |1 +
fs/squashfs/decompressor.c |4 +
fs/squashfs/lzma_wrapper.c | 151
fs/squashfs/squashfs.h |3 +
5 files changed, 164 insertions(
This adds a decompressor framework which allows multiple compression
algorithms to be cleanly supported.
Also update zlib wrapper and other code to use the new framework.
Signed-off-by: Phillip Lougher
---
fs/squashfs/Makefile |2 +-
fs/squashfs/block.c |6 ++--
fs/squ
Signed-off-by: Phillip Lougher
---
fs/squashfs/Kconfig |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/squashfs/Kconfig b/fs/squashfs/Kconfig
index 0294aa2..7ec5d7e 100644
--- a/fs/squashfs/Kconfig
+++ b/fs/squashfs/Kconfig
@@ -30,6 +30,7 @@ config SQUASHFS_LZMA
> "root" == root writes:
root> Hi,
root> The following patches add LZMA decompression support to Squashfs, using
the
root> in-kernel LZMA decompression library.
root> The patches also add a decompression framework to Squashfs.
root> This allows LZMA decompression to be added cleanly,
Signed-off-by: Phillip Lougher
---
fs/squashfs/decompressor.h |4 ++--
fs/squashfs/zlib_wrapper.c |2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/squashfs/decompressor.h b/fs/squashfs/decompressor.h
index 778760c..7425f80 100644
--- a/fs/squashfs/decompressor.h
+
Signed-off-by: Phillip Lougher
---
fs/squashfs/Kconfig|5 ++
fs/squashfs/Makefile |1 +
fs/squashfs/decompressor.c |4 +
fs/squashfs/lzma_wrapper.c | 151
fs/squashfs/squashfs.h |3 +
5 files changed, 164 insertions(
Signed-off-by: Phillip Lougher
---
fs/squashfs/decompressor.h |4 ++--
fs/squashfs/zlib_wrapper.c |2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/squashfs/decompressor.h b/fs/squashfs/decompressor.h
index 778760c..7425f80 100644
--- a/fs/squashfs/decompressor.h
+
Hi,
The following patches add LZMA decompression support to Squashfs, using the
in-kernel LZMA decompression library.
The patches also add a decompression framework to Squashfs.
This allows LZMA decompression to be added cleanly, and it allows
additional decompressors to be easily added in the fu
Move zlib buffer init/destroy code into separate wrapper file. Also
make zlib z_stream field a void * removing the need to include zlib.h
for most files.
Signed-off-by: Phillip Lougher
---
fs/squashfs/block.c |1 -
fs/squashfs/cache.c |1 -
fs/squashfs/dir.c
Signed-off-by: Phillip Lougher
---
fs/squashfs/Makefile |2 +-
fs/squashfs/block.c| 74 ++
fs/squashfs/squashfs.h |4 ++
fs/squashfs/zlib_wrapper.c | 109
4 files changed, 118 insertions(+), 71
The error function pointer used by lzma is global (file scope) which
prevents it being used concurrently. This patch removes the global
error pointer use, and instead passes it to all functions that need it.
The error function pointer is still used by bzip2 and inflate.
This patch moves the defi
Add knowledge of lzma/lzo compression formats to the decompressor
framework. For now these are added as unsupported. Without
these entries lzma/lzo compressed filesystems will be flagged as
having unknown compression which is undesirable.
Signed-off-by: Phillip Lougher
---
fs/squashfs/decompr
This adds a decompressor framework which allows multiple compression
algorithms to be cleanly supported.
Also update zlib wrapper and other code to use the new framework.
Signed-off-by: Phillip Lougher
---
fs/squashfs/Makefile |2 +-
fs/squashfs/block.c |6 ++--
fs/squ
Signed-off-by: Phillip Lougher
---
fs/squashfs/Kconfig |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/squashfs/Kconfig b/fs/squashfs/Kconfig
index 0294aa2..7ec5d7e 100644
--- a/fs/squashfs/Kconfig
+++ b/fs/squashfs/Kconfig
@@ -30,6 +30,7 @@ config SQUASHFS_LZMA
Add a config option DECOMPRESS_LZMA_NEEDED which allows subsystems to
specify they need the unlzma code. Normally decompress_unlzma.c is
compiled with __init and unlzma is not exported to modules.
Move INIT definition into separate header files for bzip2/lzma/inflate
so it can be defined differe
Add knowledge of lzma/lzo compression formats to the decompressor
framework. For now these are added as unsupported. Without
these entries lzma/lzo compressed filesystems will be flagged as
having unknown compression which is undesirable.
Signed-off-by: Phillip Lougher
---
fs/squashfs/decompr
Move zlib buffer init/destroy code into separate wrapper file. Also
make zlib z_stream field a void * removing the need to include zlib.h
for most files.
Signed-off-by: Phillip Lougher
---
fs/squashfs/block.c |1 -
fs/squashfs/cache.c |1 -
fs/squashfs/dir.c
The error function pointer used by lzma is global (file scope) which
prevents it being used concurrently. This patch removes the global
error pointer use, and instead passes it to all functions that need it.
The error function pointer is still used by bzip2 and inflate.
This patch moves the defi
Signed-off-by: Phillip Lougher
---
fs/squashfs/Makefile |2 +-
fs/squashfs/block.c| 74 ++
fs/squashfs/squashfs.h |4 ++
fs/squashfs/zlib_wrapper.c | 109
4 files changed, 118 insertions(+), 71
Hi,
The following patches add LZMA decompression support to Squashfs, using the
in-kernel LZMA decompression library.
The patches also add a decompression framework to Squashfs.
This allows LZMA decompression to be added cleanly, and it allows
additional decompressors to be easily added in the fu
27 matches
Mail list logo