4 * Defines for the "clk" timestamping STREAMS module
8 #include <sys/ioccom.h>
10 #include <sys/ioctl.h>
14 * First, we need to define the maximum size of the set of
15 * characters to timestamp. 32 is MORE than enough.
18 #define CLK_MAXSTRSIZE 32
19 struct clk_tstamp_charset
{ /* XXX to use _IOW not _IOWN */
20 char val
[CLK_MAXSTRSIZE
];
24 * ioctl(fd, CLK_SETSTR, (char*)c );
26 * will tell the driver that any char in the null-terminated
27 * string c should be timestamped. It is possible, though
28 * unlikely that this ioctl number could collide with an
29 * existing one on your system. If so, change the 'K'
30 * to some other letter. However, once you've compiled
31 * the kernel with this include file, you should NOT
35 #if defined(__STDC__) /* XXX avoid __STDC__=0 on SOLARIS */
36 #define CLK_SETSTR _IOW('K', 01, struct clk_tstamp_charset)
38 #define CLK_SETSTR _IOW(K, 01, struct clk_tstamp_charset)