Linux

カーネル2.6的プリンタポートドライバ

受託案件絡みなので詳しく書けないのが歯がゆいが,守秘性が高い部分を取り除いて,書けるだけ書いてみる.手元の環境(vPro Q35の普通のPC)では,register_region / register_irq / outb で作るトラディショナルなプリンタポートドライバは動かなかった.具…

コンパイラのバグ?

#define IO_BASE (0x378) iop_resource = request_region(IO_BASE, 3, devname); if (iop_resource == NULL) { printk(KERN_ERR "io 0x%3lX, which is busy.\n", IO_BASE); return -EBUSY; } printk("pooh.. %s %lx %lx %lx\n", iop_resource->name, iop_res…

静的アサーションにハマる.

irq_redirect.c:27: error: size of array 'type name' is negative うむ? module_param(devname,charp,S_IRUGO | S_IWUGO); linux/moduleparam.h をあちこち読み込むこと小一時間. < module_param(devname,charp,S_IRUGO | S_IWUGO); > module_param(devna…

モジュール書き

TOPPERSだけで住む世界ならどれほど楽か. …いや,そんな世界,つまらないな,