File: coding-7.html

package info (click to toggle)
alsadriver 0.2.0-pre8-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,808 kB
  • ctags: 6,550
  • sloc: ansic: 43,490; sh: 916; makefile: 759; perl: 54
file content (23 lines) | stat: -rw-r--r-- 740 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<HTML>
<HEAD>
<TITLE>Advanced Linux Sound Architecture - Driver: CLI/STI & spin locking</TITLE>
</HEAD>
<BODY>
<A HREF="coding-6.html">Previous</A>
<A HREF="coding-8.html">Next</A>
<A HREF="coding.html#toc7">Table of Contents</A>
<HR>
<H2><A NAME="s7">7. CLI/STI & spin locking</A></H2>

<P>Good code shouldn't contains <I>snd_cli()</I>/<I>snd_sti()</I> calls.
Use rather spin locks <I>snd_spin_lock()</I>/<I>snd_spin_unlock()</I>
for locking some code. This code is much better for SMP machines.</P>
<P><B>Note:</B> Debugging code is available and it should be enabled in
<I>sndspinlock.h</I>.</P>

<HR>
<A HREF="coding-6.html">Previous</A>
<A HREF="coding-8.html">Next</A>
<A HREF="coding.html#toc7">Table of Contents</A>
</BODY>
</HTML>