2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-01 14:55:39 +00:00

clang-format: do several manual comment fixups

Automatic AlignTrailingComments fails to make those comments look right,
so let's do it manually, so that they both satisfy AlignTrailingComments
and also are human-readable.

Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
This commit is contained in:
Pavel Tikhomirov
2021-10-28 17:17:44 +03:00
committed by Andrei Vagin
parent bbfd9031a3
commit 2064793225
6 changed files with 34 additions and 37 deletions

View File

@@ -126,7 +126,7 @@ struct file_desc {
struct list_head fd_info_head; /* Chain of fdinfo_list_entry-s with same ID and type but different pids */
struct file_desc_ops *ops; /* Associated operations */
struct list_head fake_master_list; /* To chain in the list of file_desc, which don't
have a fle in a task, that having permissions */
* have a fle in a task, that having permissions */
};
struct fdtype_ops {

View File

@@ -130,9 +130,7 @@ struct page_pipe {
unsigned int flags; /* PP_FOO flags below */
};
#define PP_CHUNK_MODE \
0x1 /* Restrict the maximum buffer size of pipes
and dump memory for a few iterations */
#define PP_CHUNK_MODE 0x1 /* Restrict the maximum buffer size of pipes and dump memory for a few iterations */
#define PP_OWN_IOVS 0x4 /* create_page_pipe allocated IOVs memory */
struct page_pipe *create_page_pipe(unsigned int nr_segs, struct iovec *iovs, unsigned flags);

View File

@@ -64,15 +64,12 @@ struct page_read {
u32 pages_img_id;
PagemapEntry *pe; /* current pagemap we are on */
struct page_read *parent; /* parent pagemap (if ->in_parent
pagemap is met in image, then
go to this guy for page, see
read_pagemap_page */
struct page_read *parent; /* parent pagemap (if ->in_parent pagemap is met in image,
* then go to this guy for page, see read_pagemap_page */
unsigned long cvaddr; /* vaddr we are on */
off_t pi_off; /* current offset in pages file */
struct iovec bunch; /* record consequent neighbour
iovecs to punch together */
struct iovec bunch; /* record consequent neighbour iovecs to punch together */
unsigned id; /* for logging */
unsigned long img_id; /* pagemap image file ID */

View File

@@ -85,7 +85,8 @@ struct shmem_info {
int self_count; /* the number of regions, which belongs to "pid" */
};
struct { /* For sysvipc restore */
/* For sysvipc restore */
struct {
struct list_head att; /* list of shmem_sysv_att-s */
int want_write;
};

View File

@@ -19,6 +19,7 @@ extern int shmctl(int __shmid, int __cmd, struct shmid_ds *__buf);
struct ipc_ids {
int in_use; /* TODO: Check for 0 */
// unsigned short seq;
// unsigned short seq_max;
// struct rw_semaphore rw_mutex;
@@ -28,18 +29,18 @@ struct ipc_ids {
struct ipc_ns {
struct ipc_ids ids[3];
int sem_ctls[4]; // +
int used_sems; // +
int sem_ctls[4];
int used_sems;
int msg_ctlmax; // +
int msg_ctlmnb; // +
int msg_ctlmni; // +
int msg_bytes; // +
int msg_hdrs; // +
int auto_msgmni; // +
int msg_next_id; // +
int sem_next_id; // +
int shm_next_id; // +
int msg_ctlmax;
int msg_ctlmnb;
int msg_ctlmni;
int msg_bytes;
int msg_hdrs;
int auto_msgmni;
int msg_next_id;
int sem_next_id;
int shm_next_id;
size_t shm_ctlmax;
size_t shm_ctlall;