Back to index

numactl  2.0.8~rc4
Enumerations | Functions
affinity.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  { NO_IO_AFFINITY = -2 }

Functions

int resolve_affinity (char *id, struct bitmask *mask)

Enumeration Type Documentation

anonymous enum
Enumerator:
NO_IO_AFFINITY 

Definition at line 1 of file affinity.h.

     {
       NO_IO_AFFINITY = -2
};

Function Documentation

int resolve_affinity ( char *  id,
struct bitmask mask 
)

Definition at line 323 of file affinity.c.

{
       struct handler *h;

       for (h = &handlers[0]; h->first; h++) {
              int len;
              if (id[0] != h->first)
                     continue;
              len = strlen(h->name);
              if (!strncmp(id, h->name, len)) {
                     int ret = h->handler(mask, h->cls, id + len);
                     if (ret == -2) {
                            numa_warn(W_nonode, "Kernel does not know node for %s\n",
                                     id + len);
                     }
                     return ret;
              }
       }
       return NO_IO_AFFINITY;
}

Here is the caller graph for this function: