Lines Matching refs:in

182  * shm_lock_(check_) routines are called in the paths where the rwsem

300 * We raced in the idr lookup or with shm_destroy().
369 * We raced in the idr lookup or with shm_destroy().
442 * in which shp lives.
493 * rcu_read_lock was implicitly taken in shm_lock_by_ptr, it's
785 * shmid gets reported as "inode#" in /proc/pid/maps.
850 static inline unsigned long copy_shmid_to_user(void __user *buf, struct shmid64_ds *in, int version)
854 return copy_to_user(buf, in, sizeof(*in));
859 ipc64_perm_to_ipc_perm(&in->shm_perm, &out.shm_perm);
860 out.shm_segsz = in->shm_segsz;
861 out.shm_atime = in->shm_atime;
862 out.shm_dtime = in->shm_dtime;
863 out.shm_ctime = in->shm_ctime;
864 out.shm_cpid = in->shm_cpid;
865 out.shm_lpid = in->shm_lpid;
866 out.shm_nattch = in->shm_nattch;
901 static inline unsigned long copy_shminfo_to_user(void __user *buf, struct shminfo64 *in, int version)
905 return copy_to_user(buf, in, sizeof(*in));
909 if (in->shmmax > INT_MAX) {
912 out.shmmax = (int)in->shmmax;
915 out.shmmin = in->shmmin;
916 out.shmmni = in->shmmni;
917 out.shmseg = in->shmseg;
918 out.shmall = in->shmall;
986 * to be held in write mode.
1145 * As defined in SUS:
1355 static int copy_compat_shminfo_to_user(void __user *buf, struct shminfo64 *in, int version)
1357 if (in->shmmax > INT_MAX) {
1358 in->shmmax = INT_MAX;
1363 info.shmmax = in->shmmax;
1364 info.shmmin = in->shmmin;
1365 info.shmmni = in->shmmni;
1366 info.shmseg = in->shmseg;
1367 info.shmall = in->shmall;
1372 info.shmmax = in->shmmax;
1373 info.shmmin = in->shmmin;
1374 info.shmmni = in->shmmni;
1375 info.shmseg = in->shmseg;
1376 info.shmall = in->shmall;
1395 static int copy_compat_shmid_to_user(void __user *buf, struct shmid64_ds *in, int version)
1400 to_compat_ipc64_perm(&v.shm_perm, &in->shm_perm);
1401 v.shm_atime = lower_32_bits(in->shm_atime);
1402 v.shm_atime_high = upper_32_bits(in->shm_atime);
1403 v.shm_dtime = lower_32_bits(in->shm_dtime);
1404 v.shm_dtime_high = upper_32_bits(in->shm_dtime);
1405 v.shm_ctime = lower_32_bits(in->shm_ctime);
1406 v.shm_ctime_high = upper_32_bits(in->shm_ctime);
1407 v.shm_segsz = in->shm_segsz;
1408 v.shm_nattch = in->shm_nattch;
1409 v.shm_cpid = in->shm_cpid;
1410 v.shm_lpid = in->shm_lpid;
1415 to_compat_ipc_perm(&v.shm_perm, &in->shm_perm);
1416 v.shm_perm.key = in->shm_perm.key;
1417 v.shm_atime = in->shm_atime;
1418 v.shm_dtime = in->shm_dtime;
1419 v.shm_ctime = in->shm_ctime;
1420 v.shm_segsz = in->shm_segsz;
1421 v.shm_nattch = in->shm_nattch;
1422 v.shm_cpid = in->shm_cpid;
1423 v.shm_lpid = in->shm_lpid;
1622 * pointer from becoming stale in cases where the lifetime of the outer
1745 * The work is done in shm_close.
1779 * a part of a vma. Both calls in this function are for full vmas,
1805 * in the range we are unmapping.