Re: kfifo.h and NULL spinlocks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/10/07, Nelson Castillo <nelsoneci@xxxxxxxxx> wrote:
(cut)
Is it better if I use semaphores and use the functions that have
__ and that don't use the spinlock)? It means no extra work for me.

  __kfifo_get
  __kfifo_put

Those functions also have this note:

* Note that with only one concurrent reader and one concurrent
* writer, you don't need extra locking to use these functions.

How is this achieved? I read the sources and this is not
obvious to me.

Regards,
Nelson.-

--
http://arhuaco.org
http://emQbit.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux