linux - What is the point of magic value? -
what 'magic' value in tty_driver struct
struct tty_driver { int magic; /* magic number structure */ struct kref kref; /* reference management */ struct cdev cdev; struct module *owner; const char *driver_name; .... ....
/* tty driver magic number */ #define tty_driver_magic 0x5402
from tty_driver.h listing here.
Comments
Post a Comment