[lkml]   [2006]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [HW_RNG] How to use generic rng in kernel space
    On Tuesday 08 August 2006 17:39, moreau francis wrote:
    > Michael Buesch wrote:
    > > So, if you have a special hwrng on your embedded board and you
    > > have some special driver in that board, why not interface
    > > directly from the driver to the hwrng-driver?
    > This is what I'm currently doing. I was just thinking to use the
    > new HW-RNG layer and drop common code...
    > > This is all pretty special case.
    > > In the hwrng-driver you could still additionally do a
    > > hrwng_register() to export the functionality to
    > > userspace, though.
    > >
    > yes I would like to do that but there is a problem: I have no
    > access to "rng_mutex" to synchronise hw accesses and I'm
    > wondering if there's any issue to use a mutex in driver init
    > code.

    Use your own mutex or spinlock in the data_read callback
    and use that to serialize accesses to the hardware.

    Greetings Michael.
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-08-08 19:37    [W:0.019 / U:3.292 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site