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