lkml.org 
[lkml]   [1999]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: small question about isdn-code
> From: Dag Wieers <dag@life.be>
> Date: Sat, 6 Mar 1999 17:09:00 +0100 (CET)
> Subject: small question about isdn-code
>
> while trying to solve a problem for a friend, i came across the following
> code:
>
> if ((card->typ > 0) && (card->typ < 31)) {
This checks only the possible size for an 32 Bit value and is only to
protect it for an oops, if you use a bigger index.

> if (!((1 << card->typ) & SUPORTED_CARDS)) {

This is the test if the driver for that card type is compiled in.
SUPORTED_CARDS contains a bit mask for all selected (during make config)
cards.
In a new version (not published) this will be changed,because we support
more as 32 cards now.

Karsten

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.033 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site