[openib-general] Receiving and Sending user MADs

Hal Rosenstock halr at voltaire.com
Fri Apr 29 11:52:23 PDT 2005


linux-kernel/docs/user_mad.txt states:

Receiving MADs

        struct ib_user_mad mad;
        ret = read(fd, &mad, sizeof mad);
        if (ret != sizeof mad)
                perror("read");
...
Sending MADs

        ret = write(fd, &mad, sizeof mad);
        if (ret != sizeof mad)
                perror("write");

Should this still be true (and validated) for non RMPP users ?

Thanks.

-- Hal





More information about the general mailing list