1 |
/* driver.c - The console client driver code. |
/* driver.c - The console client driver code. |
2 |
Copyright (C) 2002, 2004 Free Software Foundation, Inc. |
Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. |
3 |
Written by Marcus Brinkmann. |
Written by Marcus Brinkmann. |
4 |
|
|
5 |
This file is part of the GNU Hurd. |
This file is part of the GNU Hurd. |
248 |
driver_start (char **name) |
driver_start (char **name) |
249 |
{ |
{ |
250 |
error_t err = 0; |
error_t err = 0; |
251 |
unsigned int i; |
int i; |
252 |
|
|
253 |
mutex_lock (&driver_list_lock); |
mutex_lock (&driver_list_lock); |
254 |
for (i = 0; i < driver_list_len; i++) |
for (i = 0; i < driver_list_len; i++) |
255 |
{ |
{ |
304 |
return ESRCH; |
return ESRCH; |
305 |
} |
} |
306 |
|
|
|
|
|
307 |
#define ADD_REMOVE_COMPONENT(component) \ |
#define ADD_REMOVE_COMPONENT(component) \ |
308 |
struct mutex component##_list_lock; \ |
struct mutex component##_list_lock; \ |
309 |
component##_t component##_list; \ |
component##_t component##_list; \ |