xenbus_printf causes system reboot in kernel module
I used
xenbus_printf(XBT_NIL,"mydir", "command", "%s", "do_something");
in my kernel module, which causes my system to reboot.
Do I miss something, like initialization code before this call?
Thanks,
Weiming
Quoted 3 lines · weiming, le Mon 19 Nov 2007 05:24:01 -0500, a écrit :
xenbus_printf(XBT_NIL,"mydir", "command", "%s", "do_something");in my kernel module, which causes my system to reboot.
Is the mydir+command or do_something more that 256 chars long?
Samuel
no, just those literal strings.
if the dir/node does not exist, xenstore should create them. I also tried existing dir/nodes, no success.
Quoted 9 lines · Samuel Thibault
Quoted 3 lines · weiming, le Mon 19 Nov 2007 05:24:01 -0500, a écrit :
xenbus_printf(XBT_NIL,"mydir", "command", "%s", "do_something");in my kernel module, which causes my system to reboot.
Is the mydir+command or
do_somethingmore that 256 chars long?Samuel