Home
last modified time | relevance | path

Searched refs:skcd (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
Dcgroup-defs.h786 static inline u16 sock_cgroup_prioidx(const struct sock_cgroup_data *skcd) in sock_cgroup_prioidx() argument
789 return READ_ONCE(skcd->prioidx); in sock_cgroup_prioidx()
795 static inline u32 sock_cgroup_classid(const struct sock_cgroup_data *skcd) in sock_cgroup_classid() argument
798 return READ_ONCE(skcd->classid); in sock_cgroup_classid()
804 static inline void sock_cgroup_set_prioidx(struct sock_cgroup_data *skcd, in sock_cgroup_set_prioidx() argument
808 WRITE_ONCE(skcd->prioidx, prioidx); in sock_cgroup_set_prioidx()
812 static inline void sock_cgroup_set_classid(struct sock_cgroup_data *skcd, in sock_cgroup_set_classid() argument
816 WRITE_ONCE(skcd->classid, classid); in sock_cgroup_set_classid()
Dcgroup.h820 void cgroup_sk_alloc(struct sock_cgroup_data *skcd);
821 void cgroup_sk_clone(struct sock_cgroup_data *skcd);
822 void cgroup_sk_free(struct sock_cgroup_data *skcd);
824 static inline struct cgroup *sock_cgroup_ptr(struct sock_cgroup_data *skcd) in sock_cgroup_ptr() argument
826 return skcd->cgroup; in sock_cgroup_ptr()
831 static inline void cgroup_sk_alloc(struct sock_cgroup_data *skcd) {} in cgroup_sk_alloc() argument
832 static inline void cgroup_sk_clone(struct sock_cgroup_data *skcd) {} in cgroup_sk_clone() argument
833 static inline void cgroup_sk_free(struct sock_cgroup_data *skcd) {} in cgroup_sk_free() argument
/kernel/linux/linux-5.10/include/net/
Dnetprio_cgroup.h34 static inline void sock_update_netprioidx(struct sock_cgroup_data *skcd) in sock_update_netprioidx() argument
39 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
Dcls_cgroup.h40 static inline void sock_update_classid(struct sock_cgroup_data *skcd) in sock_update_classid() argument
45 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
/kernel/linux/linux-5.10/net/netfilter/
Dxt_cgroup.c116 struct sock_cgroup_data *skcd = &skb->sk->sk_cgrp_data; in cgroup_mt_v1() local
124 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() local
142 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()
/kernel/linux/linux-5.10/kernel/cgroup/
Dcgroup.c6525 void cgroup_sk_alloc(struct sock_cgroup_data *skcd) in cgroup_sk_alloc() argument
6548 skcd->cgroup = cgroup; in cgroup_sk_alloc()
6553 void cgroup_sk_clone(struct sock_cgroup_data *skcd) in cgroup_sk_clone() argument
6555 struct cgroup *cgrp = sock_cgroup_ptr(skcd); in cgroup_sk_clone()
6566 void cgroup_sk_free(struct sock_cgroup_data *skcd) in cgroup_sk_free() argument
6568 struct cgroup *cgrp = sock_cgroup_ptr(skcd); in cgroup_sk_free()
/kernel/linux/patches/linux-5.10/yangfan_patch/
Dinclude.patch889 void cgroup_sk_alloc(struct sock_cgroup_data *skcd);
890 void cgroup_sk_clone(struct sock_cgroup_data *skcd);
891 void cgroup_sk_free(struct sock_cgroup_data *skcd);
893 static inline struct cgroup *sock_cgroup_ptr(struct sock_cgroup_data *skcd)
895 - return skcd->cgroup;
900 + * @skcd->val is 64bit but the following is safe on 32bit too as we
903 + v = READ_ONCE(skcd->val);
910 + return (struct cgroup *)(unsigned long)skcd->val;