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

TOMOYO Linux Cross Reference
Linux/fs/xfs/xfs_message.h

Version: ~ [ linux-4.18-rc1 ] ~ [ linux-4.17.2 ] ~ [ linux-4.16.16 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.50 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.109 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.138 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.113 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.57 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.27.62 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef __XFS_MESSAGE_H
  3 #define __XFS_MESSAGE_H 1
  4 
  5 struct xfs_mount;
  6 
  7 extern __printf(2, 3)
  8 void xfs_emerg(const struct xfs_mount *mp, const char *fmt, ...);
  9 extern __printf(2, 3)
 10 void xfs_alert(const struct xfs_mount *mp, const char *fmt, ...);
 11 extern __printf(3, 4)
 12 void xfs_alert_tag(const struct xfs_mount *mp, int tag, const char *fmt, ...);
 13 extern __printf(2, 3)
 14 void xfs_crit(const struct xfs_mount *mp, const char *fmt, ...);
 15 extern __printf(2, 3)
 16 void xfs_err(const struct xfs_mount *mp, const char *fmt, ...);
 17 extern __printf(2, 3)
 18 void xfs_warn(const struct xfs_mount *mp, const char *fmt, ...);
 19 extern __printf(2, 3)
 20 void xfs_notice(const struct xfs_mount *mp, const char *fmt, ...);
 21 extern __printf(2, 3)
 22 void xfs_info(const struct xfs_mount *mp, const char *fmt, ...);
 23 
 24 #ifdef DEBUG
 25 extern __printf(2, 3)
 26 void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...);
 27 #else
 28 static inline __printf(2, 3)
 29 void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
 30 {
 31 }
 32 #endif
 33 
 34 #define xfs_printk_ratelimited(func, dev, fmt, ...)             \
 35 do {                                                                    \
 36         static DEFINE_RATELIMIT_STATE(_rs,                              \
 37                                       DEFAULT_RATELIMIT_INTERVAL,       \
 38                                       DEFAULT_RATELIMIT_BURST);         \
 39         if (__ratelimit(&_rs))                                          \
 40                 func(dev, fmt, ##__VA_ARGS__);                  \
 41 } while (0)
 42 
 43 #define xfs_emerg_ratelimited(dev, fmt, ...)                            \
 44         xfs_printk_ratelimited(xfs_emerg, dev, fmt, ##__VA_ARGS__)
 45 #define xfs_alert_ratelimited(dev, fmt, ...)                            \
 46         xfs_printk_ratelimited(xfs_alert, dev, fmt, ##__VA_ARGS__)
 47 #define xfs_crit_ratelimited(dev, fmt, ...)                             \
 48         xfs_printk_ratelimited(xfs_crit, dev, fmt, ##__VA_ARGS__)
 49 #define xfs_err_ratelimited(dev, fmt, ...)                              \
 50         xfs_printk_ratelimited(xfs_err, dev, fmt, ##__VA_ARGS__)
 51 #define xfs_warn_ratelimited(dev, fmt, ...)                             \
 52         xfs_printk_ratelimited(xfs_warn, dev, fmt, ##__VA_ARGS__)
 53 #define xfs_notice_ratelimited(dev, fmt, ...)                           \
 54         xfs_printk_ratelimited(xfs_notice, dev, fmt, ##__VA_ARGS__)
 55 #define xfs_info_ratelimited(dev, fmt, ...)                             \
 56         xfs_printk_ratelimited(xfs_info, dev, fmt, ##__VA_ARGS__)
 57 #define xfs_debug_ratelimited(dev, fmt, ...)                            \
 58         xfs_printk_ratelimited(xfs_debug, dev, fmt, ##__VA_ARGS__)
 59 
 60 extern void assfail(char *expr, char *f, int l);
 61 extern void asswarn(char *expr, char *f, int l);
 62 
 63 extern void xfs_hex_dump(void *p, int length);
 64 
 65 #endif  /* __XFS_MESSAGE_H */
 66 

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

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | 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.

osdn.jp