home | list info | list archive | date index | thread index

[OCLUG-Tech] device driver magic number for ioctl() in linux

  • Subject: [OCLUG-Tech] device driver magic number for ioctl() in linux
  • From: "Zhao, Joe" <jozhao [ at ] ciena [ dot ] com>
  • Date: Mon, 3 Nov 2008 19:57:44 -0500
Hi,

For a device driver using ioctl() calls in linux, we need to define a
unique magic number system wide.

Can we define the magic number with the value greater than 0xFF? Where
is this magic number used by linux kernel?

Thanks in advance.

Joe