Date: Sat, 4 Mar 2006 18:11:24 +0100 From: Divacky Roman <xdivac02@stud.fit.vutbr.cz> To: hackers@freebsd.org Subject: sched_newthread question Message-ID: <20060304171123.GA37661@stud.fit.vutbr.cz>
next in thread | raw e-mail | index | archive | help
hi, sched_newthread(struct thread *td) { struct td_sched *ke; ke = (struct td_sched *) (td + 1); bzero(ke, sizeof(*ke)); td->td_sched = ke; ke->ke_thread = td; ke->ke_state = KES_THREAD; } whats the logic behind: ke = (struct td_sched *) (td + 1); ? shouldnt it be: ke = td -> td_sched; ? thnx roman
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060304171123.GA37661>