general BSD socket

来源:互联网 发布:算法导论 编辑:程序博客网 时间:2024/06/05 12:08
/** *  struct socket - general BSD socket *  @state: socket state (%SS_CONNECTED, etc) *  @type: socket type (%SOCK_STREAM, etc) *  @flags: socket flags (%SOCK_NOSPACE, etc) *  @ops: protocol specific socket operations *  @file: File back pointer for gc *  @sk: internal networking protocol agnostic socket representation *  @wq: wait queue for several uses */struct socket {socket_statestate;kmemcheck_bitfield_begin(type);shorttype;kmemcheck_bitfield_end(type);unsigned longflagsstruct socket_wq __rcu*wq;struct file*file;struct sock*sk;const struct proto_ops*ops;};
0 0
原创粉丝点击