Hi Andrew and all,
I am trying to debug some code in the RGM,yet ,I don't know how to do it.
so I want to use the log information to record some information.
in some code of RGM,it seems run in the kernel, so i can't use FILE struction.

I just want to record some code infomation in the file to better understand the 
code.


Thanks
Edward
  ----- Original Message ----- 
  From: Andrew Hisgen 
  To: yang 
  Cc: ha-clusters-discuss at opensolaris.org 
  Sent: Wednesday, January 21, 2009 11:36 PM
  Subject: Re: [ha-clusters-discuss] Hi all, How to open a file in _kernel 
state?


  Hi Yang,

  Can you clarify what you are trying to do?
  Are you trying to open a file for writing from within
  the kernel?  That is, is the code that you are writing
  intended to run in the kernel?

  thanks,
  Andy

  yang wrote:
  > Hi all,
  > when define _KERNEL, I use:
  > FILE * fp;
  > fp=fileopen("path","w");
  > 
  > 
  > and the sun studio compile promp errors.
  > 
  > So in C files , how can I open a fild and write something into it in 
_KERNEL stat?
  > 
  > Thanks


  -- 
  Email:  Andrew.Hisgen at sun.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/ha-clusters-discuss/attachments/20090122/74050bf5/attachment.html>

Reply via email to