Searched refs:skcd (Results 1 – 6 of 6) sorted by relevance
836 static inline u16 sock_cgroup_prioidx(const struct sock_cgroup_data *skcd) in sock_cgroup_prioidx() argument839 return READ_ONCE(skcd->prioidx); in sock_cgroup_prioidx()845 static inline u32 sock_cgroup_classid(const struct sock_cgroup_data *skcd) in sock_cgroup_classid() argument848 return READ_ONCE(skcd->classid); in sock_cgroup_classid()854 static inline void sock_cgroup_set_prioidx(struct sock_cgroup_data *skcd, in sock_cgroup_set_prioidx() argument858 WRITE_ONCE(skcd->prioidx, prioidx); in sock_cgroup_set_prioidx()862 static inline void sock_cgroup_set_classid(struct sock_cgroup_data *skcd, in sock_cgroup_set_classid() argument866 WRITE_ONCE(skcd->classid, classid); in sock_cgroup_set_classid()
752 void cgroup_sk_alloc(struct sock_cgroup_data *skcd);753 void cgroup_sk_clone(struct sock_cgroup_data *skcd);754 void cgroup_sk_free(struct sock_cgroup_data *skcd);756 static inline struct cgroup *sock_cgroup_ptr(struct sock_cgroup_data *skcd) in sock_cgroup_ptr() argument 758 return skcd->cgroup; in sock_cgroup_ptr() 763 static inline void cgroup_sk_alloc(struct sock_cgroup_data *skcd) {} in cgroup_sk_alloc() argument 764 static inline void cgroup_sk_clone(struct sock_cgroup_data *skcd) {} in cgroup_sk_clone() argument 765 static inline void cgroup_sk_free(struct sock_cgroup_data *skcd) {} in cgroup_sk_free() argument
116 struct sock_cgroup_data *skcd = &skb->sk->sk_cgrp_data; in cgroup_mt_v1() local124 return cgroup_is_descendant(sock_cgroup_ptr(skcd), ancestor) ^ in cgroup_mt_v1()127 return (info->classid == sock_cgroup_classid(skcd)) ^ in cgroup_mt_v1()134 struct sock_cgroup_data *skcd = &skb->sk->sk_cgrp_data; in cgroup_mt_v2() local142 return cgroup_is_descendant(sock_cgroup_ptr(skcd), ancestor) ^ in cgroup_mt_v2()145 return (info->classid == sock_cgroup_classid(skcd)) ^ in cgroup_mt_v2()
34 static inline void sock_update_netprioidx(struct sock_cgroup_data *skcd) in sock_update_netprioidx() argument39 sock_cgroup_set_prioidx(skcd, task_netprioidx(current)); in sock_update_netprioidx()49 static inline void sock_update_netprioidx(struct sock_cgroup_data *skcd) in sock_update_netprioidx() argument
40 static inline void sock_update_classid(struct sock_cgroup_data *skcd) in sock_update_classid() argument45 sock_cgroup_set_classid(skcd, classid); in sock_update_classid()79 static inline void sock_update_classid(struct sock_cgroup_data *skcd) in sock_update_classid() argument
6961 void cgroup_sk_alloc(struct sock_cgroup_data *skcd) in cgroup_sk_alloc() 6984 skcd->cgroup = cgroup; in cgroup_sk_alloc() 6989 void cgroup_sk_clone(struct sock_cgroup_data *skcd) in cgroup_sk_clone() 6991 struct cgroup *cgrp = sock_cgroup_ptr(skcd); in cgroup_sk_clone() 7002 void cgroup_sk_free(struct sock_cgroup_data *skcd) in cgroup_sk_free() 7004 struct cgroup *cgrp = sock_cgroup_ptr(skcd); in cgroup_sk_free() 6960 cgroup_sk_alloc(struct sock_cgroup_data * skcd) cgroup_sk_alloc() argument 6988 cgroup_sk_clone(struct sock_cgroup_data * skcd) cgroup_sk_clone() argument 7001 cgroup_sk_free(struct sock_cgroup_data * skcd) cgroup_sk_free() argument