10 struct mydev_params params
;
14 strcpy(params
.string
, "Hello World");
16 if ((mydev_dev
= open("/dev/mydev", O_RDONLY
, 0)) < 0) {
17 fprintf(stderr
, "Failed to open /dev/skel\n");
21 if (ioctl(mydev_dev
, MYDEVTEST
, ¶ms
) < 0) {
22 perror("ioctl failed");