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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -