lkml.org 
[lkml]   [2003]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Linux 2.6.0-test4
Date
>   o [arcnet com90io] replace check_region with temporary
> request_region, in probe phase.

check_region() is deprecated because it is racy.
Replacing it with request_region in probe:

int probe() {
if(!request_region(...))
return 0;
/* probe */
release_region(...);
}

int init() {
request_region(...);
}

only removes 'deprecated' warning. Race remains.
--
vda
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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