Re: Purpose of kqueue_task?

2013-03-18 Thread Sebastian Huber
On 03/15/2013 06:19 PM, Ryan Stone wrote: On Fri, Mar 15, 2013 at 12:46 PM, Sebastian Huber sebastian.hu...@embedded-brains.de mailto:sebastian.hu...@embedded-brains.de wrote: Hello, I want to port the FreeBSD kqueue implementation to another operating system (RTEMS in this case

Purpose of kqueue_task?

2013-03-15 Thread Sebastian Huber
channel if (kq-kq_state KQ_TASKDRAIN) == KQ_TASKDRAIN. This state is only set in kqueue_close(). So most of the time the kqueue_task only obtains some locks, clears a flag (KQ_TASKSCHED) and releases the locks? -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178

thread0 usage in syncache_socket()

2012-04-27 Thread Sebastian Huber
Hi, in syncache_socket() in tcp_syncache.c the global variable thread0 is used to do a in6_pcbconnect() with the ucread of thread0. Why is the thread0 used here and not the one of the current thread? -- Sebastian Huber, embedded brains GmbH Address : Obere Lagerstr. 30, D-82178 Puchheim

XDR Library and Short Enums

2012-04-16 Thread Sebastian Huber
(FALSE); } } The problem is in the XDR library usage. An example is this (rpc_msg.h): enum msg_type { CALL=0, REPLY=1 }; How would you fix this? What about enum msg_type { CALL=0, REPLY=1, _MSG_TYPE_INVALID = 0x }; ? -- Sebastian Huber

Re: Unit Tests for FreeBSD Kernel APIs?

2011-07-05 Thread Sebastian Huber
On 06/24/2011 03:14 PM, John Baldwin wrote: On Friday, June 24, 2011 3:23:11 am Sebastian Huber wrote: Hello, exists there some unit tests for FreeBSD kernel APIs, e.g. mutex(9), condvar(9), etc.? Have a nice day! Hmm, I have a kernel module that does some tests

Unit Tests for FreeBSD Kernel APIs?

2011-06-24 Thread Sebastian Huber
Hello, exists there some unit tests for FreeBSD kernel APIs, e.g. mutex(9), condvar(9), etc.? Have a nice day! -- Sebastian Huber, embedded brains GmbH Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany Phone : +49 89 18 90 80 79-6 Fax : +49 89 18 90 80 79-9 E-Mail : sebastian.hu

PowerPC e500v2 and IEEE 754

2011-03-22 Thread Sebastian Huber
Hello does anyone know if FreeBSD provides the software support for full IEEE 754 conformance on a PowerPC e500v2 core (for example QorIQ series from Freescale)? Have a nice day! -- Sebastian Huber, embedded brains GmbH Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany Phone : +49 89

ARM and structure size boundary

2010-01-21 Thread Sebastian Huber
on FreeBSD by default? This value is (or was) important for the network stack. Do you know if the current FreeBSD network stack is dependent on this value? In the file gcc/config/arm/netbsd.h (GCC sources) is a comment about this topic. Have a nice day! -- Sebastian Huber, embedded brains GmbH

Return type of xpt_bus_register() and xpt_bus_deregister()

2009-07-13 Thread Sebastian Huber
Hi, why have the functions xpt_bus_register() and xpt_bus_unregister() a return value type of int32_t? For me it is not clear how the supposed return value should look like. They return a mixture of cam_status and CAM_SUCCESS (this one equals CAM_REQ_INPROG). Have a nice day! -- Sebastian

callout(9) and Giant lock

2009-06-28 Thread Sebastian Huber
of the callout function blocks forever? Does this deadlock the system? CU -- Sebastian Huber, Embedded Brains GmbH Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany Phone : +49 89 18 90 80 79-6 Fax : +49 89 18 90 80 79-9 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key