lkml.org 
[lkml]   [2003]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] helper for device list traversal
On Thu, 25 Sep 2003, Linux Kernel Mailing List wrote:
> ChangeSet 1.1217.10.16, 2003/09/25 12:10:17-05:00, hch@lst.de
>
> [PATCH] helper for device list traversal
>
> This patch adds shost_for_each_device(). It's used to abstract out
> scsi_host.my_devices traversal. The next step will be to replace
> the current simple implementation with one that's fully locked down
> an reference counted.

Is this what we should use to fix the currently broken list traversal[*] in
drivers/scsi/{a2091,gvp11,53c7xx}.c?

Currently ut uses

struct Scsi_Host *instance;
for (instance = first_instance; instance &&
instance->hostt == xxx_template; instance = instance->next)

bust Scsi_Host.next was removed a while ago...

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

-
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:1.860 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site