This discussion is archived
1 Reply Latest reply: Apr 24, 2009 5:23 PM by 807557 RSS

cyclic driver question

807557 Newbie
Currently Being Moderated
I have tried to install Solaris 10 on my system to get the cyclic driver to work, but Solaris 10 just doesn't want to play nice on my machine. I am back to using OpenSolaris. I found a very interesting article from a Sun employee ( ) that describes how to change the OS version returned by uname using a DTrace hack, which list below

#!/usr/sbin/dtrace -s

#pragma D option destructive

self->addr = arg0;

copyoutstr("SunOS", self->addr, 257);
copyoutstr("PowerPC", self->addr+257, 257);
copyoutstr("5.5.1", self->addr+(257*2), 257);
copyoutstr("gate:1996-12-01", self->addr+(257*3), 257);
copyoutstr("PPC", self->addr+(257*4), 257);

uname now returns 5.10 on my machine, but the cyclic driver (as reported by /var/adm/messages) still insists that I an running a 5.11 Solaris system. Could you let me know which function is used in the cyclic_drv_init function to check OS version so that I can write a similar workaround to the one above?

Thanks and sorry for the bother.