Jan Kiszka wrote:
> File descriptors are all identically structured objects, so at worst you
> ruin some other app's day. But the registry contains arbitrary objects
> with different internal layout. If you start assuming object_a * is
> object_b * and use the pointer etc. included in a as if they have the
> meaning of b, you quickly ruin the kernel's day as well. Therefore,
> native, e.g., does magic checks after fetching from the registry. As I
> said, this test here works differently, but it has the same effect and
> impact.

By the way, would not it make sense to have separate hash tables for
separate objects types ? I mean then we would not need any validation,
and several object types could use the same name.


Xenomai-core mailing list

Reply via email to