2

Linux headers linux/magic.h and linux/poison.h seems to be strange. There's nothing but macros that can be expanded into constants in there.

And it seems that some user-space app depend on them.

I can't understand what these 2 headers do.

JiaHao Xu
  • 2,452
  • 16
  • 31

1 Answers1

1

linux/magic.h defines constants used to identify the format of a filesystem (by identifying magic number in superblock). See more here.
linux/poison.h defines constants used in pointer poisoning, ie. pointers with specified values can't be used without a crash and are somewhat easier to track. See another answer here.

KamilCuk
  • 120,984
  • 8
  • 59
  • 111