Searched refs:skcd (Results 1 – 6 of 6) sorted by relevance
774 static inline u16 sock_cgroup_prioidx(const struct sock_cgroup_data *skcd) in sock_cgroup_prioidx() argument777 return (skcd->is_data & 1) ? skcd->prioidx : 1; in sock_cgroup_prioidx()780 static inline u32 sock_cgroup_classid(const struct sock_cgroup_data *skcd) in sock_cgroup_classid() argument783 return (skcd->is_data & 1) ? skcd->classid : 0; in sock_cgroup_classid()790 static inline void sock_cgroup_set_prioidx(struct sock_cgroup_data *skcd, in sock_cgroup_set_prioidx() argument793 struct sock_cgroup_data skcd_buf = {{ .val = READ_ONCE(skcd->val) }}; in sock_cgroup_set_prioidx()804 WRITE_ONCE(skcd->val, skcd_buf.val); /* see sock_cgroup_ptr() */ in sock_cgroup_set_prioidx()807 static inline void sock_cgroup_set_classid(struct sock_cgroup_data *skcd, in sock_cgroup_set_classid() argument810 struct sock_cgroup_data skcd_buf = {{ .val = READ_ONCE(skcd->val) }}; in sock_cgroup_set_classid()821 WRITE_ONCE(skcd->val, skcd_buf.val); /* see sock_cgroup_ptr() */ in sock_cgroup_set_classid()
799 void cgroup_sk_alloc(struct sock_cgroup_data *skcd);800 void cgroup_sk_free(struct sock_cgroup_data *skcd);802 static inline struct cgroup *sock_cgroup_ptr(struct sock_cgroup_data *skcd) in sock_cgroup_ptr() argument811 v = READ_ONCE(skcd->val); in sock_cgroup_ptr()818 return (struct cgroup *)(unsigned long)skcd->val; in sock_cgroup_ptr()824 static inline void cgroup_sk_alloc(struct sock_cgroup_data *skcd) {} in cgroup_sk_alloc() argument825 static inline void cgroup_sk_free(struct sock_cgroup_data *skcd) {} in cgroup_sk_free() argument
40 static inline void sock_update_netprioidx(struct sock_cgroup_data *skcd) in sock_update_netprioidx() argument45 sock_cgroup_set_prioidx(skcd, task_netprioidx(current)); in sock_update_netprioidx()55 static inline void sock_update_netprioidx(struct sock_cgroup_data *skcd) in sock_update_netprioidx() argument
45 static inline void sock_update_classid(struct sock_cgroup_data *skcd) in sock_update_classid() argument50 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
87 struct sock_cgroup_data *skcd = &skb->sk->sk_cgrp_data; in cgroup_mt_v1() local95 return cgroup_is_descendant(sock_cgroup_ptr(skcd), ancestor) ^ in cgroup_mt_v1()98 return (info->classid == sock_cgroup_classid(skcd)) ^ in cgroup_mt_v1()
5852 void cgroup_sk_alloc(struct sock_cgroup_data *skcd) in cgroup_sk_alloc() argument5858 if (skcd->val) { in cgroup_sk_alloc()5864 cgroup_get(sock_cgroup_ptr(skcd)); in cgroup_sk_alloc()5875 skcd->val = (unsigned long)cset->dfl_cgrp; in cgroup_sk_alloc()5884 void cgroup_sk_free(struct sock_cgroup_data *skcd) in cgroup_sk_free() argument5886 cgroup_put(sock_cgroup_ptr(skcd)); in cgroup_sk_free()