Lines Matching defs:in

188  * shm_lock_(check_) routines are called in the paths where the rwsem
314 * We raced in the idr lookup or with shm_destroy().
379 * We raced in the idr lookup or with shm_destroy().
460 * in which shp lives.
511 * rcu_read_lock was implicitly taken in shm_lock_by_ptr, it's
786 * shmid gets reported as "inode#" in /proc/pid/maps.
847 static inline unsigned long copy_shmid_to_user(void __user *buf, struct shmid64_ds *in, int version)
851 return copy_to_user(buf, in, sizeof(*in));
857 ipc64_perm_to_ipc_perm(&in->shm_perm, &out.shm_perm);
858 out.shm_segsz = in->shm_segsz;
859 out.shm_atime = in->shm_atime;
860 out.shm_dtime = in->shm_dtime;
861 out.shm_ctime = in->shm_ctime;
862 out.shm_cpid = in->shm_cpid;
863 out.shm_lpid = in->shm_lpid;
864 out.shm_nattch = in->shm_nattch;
899 static inline unsigned long copy_shminfo_to_user(void __user *buf, struct shminfo64 *in, int version)
903 return copy_to_user(buf, in, sizeof(*in));
908 if (in->shmmax > INT_MAX)
911 out.shmmax = (int)in->shmmax;
913 out.shmmin = in->shmmin;
914 out.shmmni = in->shmmni;
915 out.shmseg = in->shmseg;
916 out.shmall = in->shmall;
985 * to be held in write mode.
1143 * As defined in SUS:
1344 static int copy_compat_shminfo_to_user(void __user *buf, struct shminfo64 *in,
1347 if (in->shmmax > INT_MAX)
1348 in->shmmax = INT_MAX;
1352 info.shmmax = in->shmmax;
1353 info.shmmin = in->shmmin;
1354 info.shmmni = in->shmmni;
1355 info.shmseg = in->shmseg;
1356 info.shmall = in->shmall;
1361 info.shmmax = in->shmmax;
1362 info.shmmin = in->shmmin;
1363 info.shmmni = in->shmmni;
1364 info.shmseg = in->shmseg;
1365 info.shmall = in->shmall;
1385 static int copy_compat_shmid_to_user(void __user *buf, struct shmid64_ds *in,
1391 to_compat_ipc64_perm(&v.shm_perm, &in->shm_perm);
1392 v.shm_atime = lower_32_bits(in->shm_atime);
1393 v.shm_atime_high = upper_32_bits(in->shm_atime);
1394 v.shm_dtime = lower_32_bits(in->shm_dtime);
1395 v.shm_dtime_high = upper_32_bits(in->shm_dtime);
1396 v.shm_ctime = lower_32_bits(in->shm_ctime);
1397 v.shm_ctime_high = upper_32_bits(in->shm_ctime);
1398 v.shm_segsz = in->shm_segsz;
1399 v.shm_nattch = in->shm_nattch;
1400 v.shm_cpid = in->shm_cpid;
1401 v.shm_lpid = in->shm_lpid;
1406 to_compat_ipc_perm(&v.shm_perm, &in->shm_perm);
1407 v.shm_perm.key = in->shm_perm.key;
1408 v.shm_atime = in->shm_atime;
1409 v.shm_dtime = in->shm_dtime;
1410 v.shm_ctime = in->shm_ctime;
1411 v.shm_segsz = in->shm_segsz;
1412 v.shm_nattch = in->shm_nattch;
1413 v.shm_cpid = in->shm_cpid;
1414 v.shm_lpid = in->shm_lpid;
1602 * pointer from becoming stale in cases where the lifetime of the outer
1721 * The work is done in shm_close.
1753 * a part of a vma. Both calls in this function are for full vmas,
1777 * in the range we are unmapping.