Date: Thu, 28 Nov 2002 19:42:47 +0100 From: Martin Kaeske <Martin.Kaeske@Stud.TU-Ilmenau.DE> To: freebsd-hackers@freebsd.org Subject: inital value of oid_refcnt Message-ID: <20021128184247.GA1418@walnut.hh59.local>
next in thread | raw e-mail | index | archive | help
Hello, I have a question concerning "struct sysctl_oid"s initial value for oid_refcnt. Why is oid_refcnt set to 0 with the SYSCTL_OID macro but to 1 if created with sysctl_add_oid()? And another question: Is it guaranteed that all sysctls from a modules "sysctl_set" (obtained with 'sysctls = (struct linker_set*) linker_file_lookup_symbol(lf, "sysctl_set", 0);' in kern_linker.c) are initialized with "oid_refcnt==0"? thanks in advance Martin -- "At the beginning of the week, we sealed ten BSD programmers into a computer room with a single distribution of BSD Unix. Upon opening the room after seven days, we found all ten programmers dead, clutching each others throats, and thirteen new flavors of BSD." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021128184247.GA1418>