Previous: , Up: BPF Syntax   [Contents][Index] Pseudo Maps

The LDDW instruction can take a literal pseudo map file descriptor as its second argument. This uses the syntax %map_fd(N) where N is a signed number.

For example, to load the address of the pseudo map with file descriptor 2 in register r1 we would do:

        lddw %r1, %map_fd(2)