Commit 41ba3d46 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

unix: Adjust unix_sk_info members

For readability sake. And use standart uint8_t types.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent b2f3bf1d
...@@ -880,32 +880,32 @@ err: ...@@ -880,32 +880,32 @@ err:
} }
struct unix_sk_info { struct unix_sk_info {
UnixSkEntry *ue; UnixSkEntry *ue;
struct list_head list; struct list_head list;
char *name; char *name;
char *name_dir; char *name_dir;
unsigned flags; unsigned flags;
struct unix_sk_info *peer; struct unix_sk_info *peer;
struct pprep_head peer_resolve; /* XXX : union with the above? */ struct pprep_head peer_resolve; /* XXX : union with the above? */
struct file_desc d; struct file_desc d;
struct list_head connected; /* List of sockets, connected to me */ struct list_head connected; /* List of sockets, connected to me */
struct list_head node; /* To link in peer's connected list */ struct list_head node; /* To link in peer's connected list */
struct list_head scm_fles; struct list_head scm_fles;
/* /*
* For DGRAM sockets with queues, we should only restore the queue * For DGRAM sockets with queues, we should only restore the queue
* once although it may be open by more than one tid. This is the peer * once although it may be open by more than one tid. This is the peer
* that should do the queueing. * that should do the queueing.
*/ */
struct unix_sk_info *queuer; struct unix_sk_info *queuer;
/* /*
* These bits are set by task-owner of this unix_sk_info. * These bits are set by task-owner of this unix_sk_info.
* Another tasks can only read them. * Another tasks can only read them.
*/ */
u8 bound:1; uint8_t bound:1;
u8 listen:1; uint8_t listen:1;
u8 is_connected:1; uint8_t is_connected:1;
u8 peer_queue_restored:1; /* Set in 1 after we restore peer's queue */ uint8_t peer_queue_restored:1; /* Set in 1 after we restore peer's queue */
}; };
struct scm_fle { struct scm_fle {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment