~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/fs/squashfs/decompressor.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /fs/squashfs/decompressor.h (Version linux-6.12-rc7) and /fs/squashfs/decompressor.h (Version linux-5.18.19)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 #ifndef DECOMPRESSOR_H                              2 #ifndef DECOMPRESSOR_H
  3 #define DECOMPRESSOR_H                              3 #define DECOMPRESSOR_H
  4 /*                                                  4 /*
  5  * Squashfs - a compressed read only filesyste      5  * Squashfs - a compressed read only filesystem for Linux
  6  *                                                  6  *
  7  * Copyright (c) 2002, 2003, 2004, 2005, 2006,      7  * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  8  * Phillip Lougher <phillip@squashfs.org.uk>        8  * Phillip Lougher <phillip@squashfs.org.uk>
  9  *                                                  9  *
 10  * decompressor.h                                  10  * decompressor.h
 11  */                                                11  */
 12                                                    12 
 13 #include <linux/bio.h>                             13 #include <linux/bio.h>
 14                                                    14 
 15 struct squashfs_decompressor {                     15 struct squashfs_decompressor {
 16         void    *(*init)(struct squashfs_sb_in     16         void    *(*init)(struct squashfs_sb_info *, void *);
 17         void    *(*comp_opts)(struct squashfs_     17         void    *(*comp_opts)(struct squashfs_sb_info *, void *, int);
 18         void    (*free)(void *);                   18         void    (*free)(void *);
 19         int     (*decompress)(struct squashfs_     19         int     (*decompress)(struct squashfs_sb_info *, void *,
 20                 struct bio *, int, int, struct     20                 struct bio *, int, int, struct squashfs_page_actor *);
 21         int     id;                                21         int     id;
 22         char    *name;                             22         char    *name;
 23         int     alloc_buffer;                  << 
 24         int     supported;                         23         int     supported;
 25 };                                                 24 };
 26                                                    25 
 27 static inline void *squashfs_comp_opts(struct      26 static inline void *squashfs_comp_opts(struct squashfs_sb_info *msblk,
 28                                                    27                                                         void *buff, int length)
 29 {                                                  28 {
 30         return msblk->decompressor->comp_opts      29         return msblk->decompressor->comp_opts ?
 31                 msblk->decompressor->comp_opts     30                 msblk->decompressor->comp_opts(msblk, buff, length) : NULL;
 32 }                                                  31 }
 33                                                    32 
 34 #ifdef CONFIG_SQUASHFS_XZ                          33 #ifdef CONFIG_SQUASHFS_XZ
 35 extern const struct squashfs_decompressor squa     34 extern const struct squashfs_decompressor squashfs_xz_comp_ops;
 36 #endif                                             35 #endif
 37                                                    36 
 38 #ifdef CONFIG_SQUASHFS_LZ4                         37 #ifdef CONFIG_SQUASHFS_LZ4
 39 extern const struct squashfs_decompressor squa     38 extern const struct squashfs_decompressor squashfs_lz4_comp_ops;
 40 #endif                                             39 #endif
 41                                                    40 
 42 #ifdef CONFIG_SQUASHFS_LZO                         41 #ifdef CONFIG_SQUASHFS_LZO
 43 extern const struct squashfs_decompressor squa     42 extern const struct squashfs_decompressor squashfs_lzo_comp_ops;
 44 #endif                                             43 #endif
 45                                                    44 
 46 #ifdef CONFIG_SQUASHFS_ZLIB                        45 #ifdef CONFIG_SQUASHFS_ZLIB
 47 extern const struct squashfs_decompressor squa     46 extern const struct squashfs_decompressor squashfs_zlib_comp_ops;
 48 #endif                                             47 #endif
 49                                                    48 
 50 #ifdef CONFIG_SQUASHFS_ZSTD                        49 #ifdef CONFIG_SQUASHFS_ZSTD
 51 extern const struct squashfs_decompressor squa     50 extern const struct squashfs_decompressor squashfs_zstd_comp_ops;
 52 #endif                                             51 #endif
 53                                                    52 
 54 #endif                                             53 #endif
 55                                                    54 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php