All of lore.kernel.org
 help / color / mirror / Atom feed
* Are there any API's to create ring buffers easily in kernel?
@ 2015-03-02 10:24 manty kuma
  2015-03-02 10:33 ` sanjeev sharma
  2015-03-02 11:26 ` Pranay Srivastava
  0 siblings, 2 replies; 3+ messages in thread
From: manty kuma @ 2015-03-02 10:24 UTC (permalink / raw)
  To: kernelnewbies

Hi,

Are there any ready-to-use API's in kernel to allocate a ring buffer and
give some prints into it (I don't want to corrupt kernel log)?

Best Regards,
Manty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150302/81a405b6/attachment.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Are there any API's to create ring buffers easily in kernel?
  2015-03-02 10:24 Are there any API's to create ring buffers easily in kernel? manty kuma
@ 2015-03-02 10:33 ` sanjeev sharma
  2015-03-02 11:26 ` Pranay Srivastava
  1 sibling, 0 replies; 3+ messages in thread
From: sanjeev sharma @ 2015-03-02 10:33 UTC (permalink / raw)
  To: kernelnewbies

Hello,

Ring buffer you can implement using kfifo

Regards
Sanjeev Sharma

On Mon, Mar 2, 2015 at 3:54 PM, manty kuma <mantykuma@gmail.com> wrote:

> Hi,
>
> Are there any ready-to-use API's in kernel to allocate a ring buffer and
> give some prints into it (I don't want to corrupt kernel log)?
>
> Best Regards,
> Manty
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150302/b3fd740c/attachment.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Are there any API's to create ring buffers easily in kernel?
  2015-03-02 10:24 Are there any API's to create ring buffers easily in kernel? manty kuma
  2015-03-02 10:33 ` sanjeev sharma
@ 2015-03-02 11:26 ` Pranay Srivastava
  1 sibling, 0 replies; 3+ messages in thread
From: Pranay Srivastava @ 2015-03-02 11:26 UTC (permalink / raw)
  To: kernelnewbies

Hi Manty

On Mon, Mar 2, 2015 at 3:24 AM, manty kuma <mantykuma@gmail.com> wrote:
> Hi,
>
> Are there any ready-to-use API's in kernel to allocate a ring buffer and
> give some prints into it (I don't want to corrupt kernel log)?

Have you seen circ_buff? Documentation/circular-buffers.txt

>
> Best Regards,
> Manty
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
        ---P.K.S

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-02 11:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-02 10:24 Are there any API's to create ring buffers easily in kernel? manty kuma
2015-03-02 10:33 ` sanjeev sharma
2015-03-02 11:26 ` Pranay Srivastava

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.