Re: locking structures in the kernel

Richard Guy Briggs (rgb@conscoop.ottawa.on.ca)
Fri, 1 Oct 1999 12:05:10 -0400 (EDT)


-----BEGIN PGP SIGNED MESSAGE-----

> On Fri, Oct 01, 1999 at 10:32:23AM -0400, Richard Guy Briggs wrote:
> > Now, in retrocomputing, what do I use in 2.0.38? I am supporting code
> > with compiler directives to support 3 major kernel versions. There is
> > no text in the 'Documentation' directory, except for file locks. I
> > have found include/asm/locks.h and include/asm/semaphore.h and am
> > looking for examples in the code.
>
> You basically don't need to worry for 2.0.38. In 2.0, there is only the
> big kernel lock, so only one processor may be in the kernel at a time.

I am noticing this in the existing code in 2.0.xx. The drivers that
have been ported simply redefine the spinlock calls to
save_flags(f);cli(); and sti();. In fact, I thought it quite
humourous!

Thanks!

> Matthew Wilcox <willy@bofh.ai>

slainte mhath, RGB
- --
Richard Guy Briggs -- PGP key available Auto-Free Ottawa! Canada
<http://www.conscoop.ottawa.on.ca/rgb/> </www.flora.org/afo/>
Prevent Internet Wiretapping! -- FreeS/WAN:<www.xs4all.nl/~freeswan>
Thanks for voting Green! -- <green.ca> Marillion:<www.marillion.co.uk>

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQCVAwUBN/TbtN+sBuIhFagtAQHjLgQApPifodYXMpnzpTw4/36j2ZuvStMoQBAJ
B0duyIAyJ4rQ6pLuN3tFxEdfUDC+ITm6RFDLs159HKcP90SLObZm+eDPHtWyoRiK
47A1s3Qo+EsIN8u2UmNoEmBy3yV7E4GSkb1xQigUDhfqglPlcJBT1D5Yoc/uaeoC
K3Ks82qWNdE=
=N4Cd
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/