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

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -