Searched refs:ling (Results 1 – 1 of 1) sorted by relevance
729 struct linger ling; in sock_setsockopt() local875 if (optlen < sizeof(ling)) { in sock_setsockopt()879 if (copy_from_user(&ling, optval, sizeof(ling))) { in sock_setsockopt()883 if (!ling.l_onoff) in sock_setsockopt()887 if ((unsigned int)ling.l_linger >= MAX_SCHEDULE_TIMEOUT/HZ) in sock_setsockopt()891 sk->sk_lingertime = (unsigned int)ling.l_linger * HZ; in sock_setsockopt()1224 struct linger ling; in sock_getsockopt() member1305 lv = sizeof(v.ling); in sock_getsockopt()1306 v.ling.l_onoff = sock_flag(sk, SOCK_LINGER); in sock_getsockopt()1307 v.ling.l_linger = sk->sk_lingertime / HZ; in sock_getsockopt()