Date: Fri, 03 Sep 2010 10:43:36 +0300 From: Andriy Gapon <avg@freebsd.org> To: freebsd-arch@freebsd.org Subject: newbus: type (max value) for device order Message-ID: <4C80A728.6090002@freebsd.org>
next in thread | raw e-mail | index | archive | help
device_add_child_ordered() takes order as a parameter of int type. struct device stores it as u_char. This can be confusing, can't it? In fact, up to r203776 we used to use order value of 100000 in acpi.c (which effectively was 160 according to my calculations). Not sure what I want to suggest, perhaps defining DEVICE_MAX_ORDER or something. Or changing the type in struct device to int. -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C80A728.6090002>