Skip to contentSkip to conversation

xenbus_printf causes system reboot in kernel module

DISCUSSION weiming 2 participants 3 messages Nov 19, 2007

lore
Share & tools
lore

weiming

author
#0 lore raw

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

#1 lore raw
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

author
#2 lore raw

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_something more that 256 chars long?

Samuel