[funini.com] -> [kei@sodan] -> Kernel Reading

root/include/net/netns/hash.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. net_hash_mix

#ifndef __NET_NS_HASH_H__
#define __NET_NS_HASH_H__

#include <asm/cache.h>

struct net;

static inline unsigned net_hash_mix(struct net *net)
{
#ifdef CONFIG_NET_NS
        /*
         * shift this right to eliminate bits, that are
         * always zeroed
         */

        return (unsigned)(((unsigned long)net) >> L1_CACHE_SHIFT);
#else
        return 0;
#endif
}
#endif

/* [<][>][^][v][top][bottom][index][help] */

[funini.com] -> [kei@sodan] -> Kernel Reading