FreeBSD: BUS_TEARDOWN_INTR definition not found

In the FreeBSD source code, the bus_teardown_intr method in sys / kern / subr_bus.c calls "BUS_TEARDOWN_INTR". What does BUS_TEARDOWN_INTR do? I can not find his definition.

I am attaching a piece of code for reference

int bus_teardown_intr(device_t dev, device_t child, struct resource *irq, void *cookie) { if (dev->parent) return (EINVAL); return (BUS_TEARDOWN_INTR(dev->parent, child, irq, cookie)); } 

Here is a link to the code "fxr.watson.org/fxr/source/kern/subr_bus.c", line number 4177 corresponds to the code above.

+4
source share
1 answer

This is the generated sys/tools/makeobjops.awk . See sys/kern/bus_if.m for the source.

You can see the generated code in GENERIC / bus_if.h in your object directory after building the kernel. (or replace your kernel name for GENERIC if you changed it.)

The function also has a man page. A type:

 man 9 BUS_TEARDOWN_INTR 

To read the documentation.

+3
source

Source: https://habr.com/ru/post/1484621/


All Articles