<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hi Greg,<br><br>Let me rephrase my question then.<br><br>If I am in kernel space and in another device driver and I need to write a log entry of some sort to another block device, do I just perform an "open" and "write" as if I am in user space?<br><br>I am very new at this so bear with me on this.<br><br>Thanks in advance.<br>yx<br><br><br><div>> Date: Tue, 4 Oct 2011 11:04:09 -0700<br>> From: greg@kroah.com<br>> To: pointyx@live.com<br>> Subject: Re: How to open and write to a block driver within a character driver?<br>> CC: kernelnewbies@kernelnewbies.org<br>> <br>> On Tue, Oct 04, 2011 at 10:52:33AM -0700, Yang Xiang wrote:<br>> > The design is not up to me and I am just developing the code and I need to<br>> > develop the filter layer to convert the character buf to bio vects. But I am<br>> > wondering if there is a easy way to do this.<br>> <br>> Then I suggest you push back on the design, just because someone told<br>> you to do something incorrect, are you supposed to do it?<br>> <br>> thanks,<br>> <br>> greg k-h<br>> <br>> _______________________________________________<br>> Kernelnewbies mailing list<br>> Kernelnewbies@kernelnewbies.org<br>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies<br></div>                                            </div></body>
</html>