/* * We don't do inline string functions, since the * optimised inline asm versions are not small. * * The __underscore versions of some functions are for KASan to be able * to replace them with instrumented versions.
*/
#define __HAVE_ARCH_STRRCHR externchar * strrchr(constchar * s, int c);
#define __HAVE_ARCH_STRCHR externchar * strchr(constchar * s, int c);
/* * For files that are not instrumented (e.g. mm/slub.c) we * must use non-instrumented versions of the mem* * functions named __memcpy() etc. All such kernel code has * been tagged with KASAN_SANITIZE_file.o = n, which means * that the address sanitization argument isn't passed to the * compiler, and __SANITIZE_ADDRESS__ is not set. As a result * these defines kick in.
*/ #ifdefined(CONFIG_KASAN) && !defined(__SANITIZE_ADDRESS__) #define memcpy(dst, src, len) __memcpy(dst, src, len) #define memmove(dst, src, len) __memmove(dst, src, len) #define memset(s, c, n) __memset(s, c, n)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.