Home
last modified time | relevance | path

Searched refs:shp (Results 1 – 12 of 12) sorted by relevance

/linux-6.6.21/ipc/
Dshm.c97 #define shm_unlock(shp) \ argument
98 ipc_unlock(&(shp)->shm_perm)
103 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp);
124 struct shmid_kernel *shp; in do_shm_rmid() local
126 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in do_shm_rmid()
127 WARN_ON(ns != shp->ns); in do_shm_rmid()
129 if (shp->shm_nattch) { in do_shm_rmid()
130 shp->shm_perm.mode |= SHM_DEST; in do_shm_rmid()
132 ipc_set_key_private(&shm_ids(ns), &shp->shm_perm); in do_shm_rmid()
133 shm_unlock(shp); in do_shm_rmid()
[all …]
/linux-6.6.21/net/bridge/netfilter/
Debt_arpreply.c27 const unsigned char *shp; in ebt_arpreply_tg() local
40 shp = skb_header_pointer(skb, sizeof(_ah), ETH_ALEN, &_sha); in ebt_arpreply_tg()
41 if (shp == NULL) in ebt_arpreply_tg()
57 *diptr, shp, info->mac, shp); in ebt_arpreply_tg()
/linux-6.6.21/include/linux/
Dsecurity.h463 int security_shm_alloc(struct kern_ipc_perm *shp);
464 void security_shm_free(struct kern_ipc_perm *shp);
465 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg);
466 int security_shm_shmctl(struct kern_ipc_perm *shp, int cmd);
467 int security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg);
1295 static inline int security_shm_alloc(struct kern_ipc_perm *shp) in security_shm_alloc() argument
1300 static inline void security_shm_free(struct kern_ipc_perm *shp) in security_shm_free() argument
1303 static inline int security_shm_associate(struct kern_ipc_perm *shp, in security_shm_associate() argument
1309 static inline int security_shm_shmctl(struct kern_ipc_perm *shp, int cmd) in security_shm_shmctl() argument
1314 static inline int security_shm_shmat(struct kern_ipc_perm *shp, in security_shm_shmat() argument
/linux-6.6.21/security/
Dsecurity.c3648 int security_shm_alloc(struct kern_ipc_perm *shp) in security_shm_alloc() argument
3650 int rc = lsm_ipc_alloc(shp); in security_shm_alloc()
3654 rc = call_int_hook(shm_alloc_security, 0, shp); in security_shm_alloc()
3656 security_shm_free(shp); in security_shm_alloc()
3666 void security_shm_free(struct kern_ipc_perm *shp) in security_shm_free() argument
3668 call_void_hook(shm_free_security, shp); in security_shm_free()
3669 kfree(shp->security); in security_shm_free()
3670 shp->security = NULL; in security_shm_free()
3685 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg) in security_shm_associate() argument
3687 return call_int_hook(shm_associate, 0, shp, shmflg); in security_shm_associate()
[all …]
/linux-6.6.21/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
Dphy_cmn.c354 struct shared_phy *wlc_phy_shared_attach(struct shared_phy_params *shp) in wlc_phy_shared_attach() argument
362 sh->physhim = shp->physhim; in wlc_phy_shared_attach()
363 sh->unit = shp->unit; in wlc_phy_shared_attach()
364 sh->corerev = shp->corerev; in wlc_phy_shared_attach()
366 sh->vid = shp->vid; in wlc_phy_shared_attach()
367 sh->did = shp->did; in wlc_phy_shared_attach()
368 sh->chip = shp->chip; in wlc_phy_shared_attach()
369 sh->chiprev = shp->chiprev; in wlc_phy_shared_attach()
370 sh->chippkg = shp->chippkg; in wlc_phy_shared_attach()
371 sh->sromrev = shp->sromrev; in wlc_phy_shared_attach()
[all …]
Dphy_hal.h166 struct shared_phy *wlc_phy_shared_attach(struct shared_phy_params *shp);
/linux-6.6.21/drivers/atm/
Deni.c1961 int error,rate,rsv,shp; in eni_change_qos() local
1967 rsv = shp = 0; in eni_change_qos()
1970 if ((flgs & ATM_MF_DEC_SHP) && rate && rate < tx->shaping) shp = 1; in eni_change_qos()
1971 if ((flgs & ATM_MF_INC_SHP) && (!rate || rate > tx->shaping)) shp = 1; in eni_change_qos()
1972 if (!rsv && !shp) return 0; in eni_change_qos()
1973 error = reserve_or_set_tx(vcc,&qos->txtp,rsv,shp); in eni_change_qos()
1975 if (shp && !(flgs & ATM_MF_IMMED)) return 0; in eni_change_qos()
/linux-6.6.21/tools/perf/util/
Dsymbol.h41 GElf_Shdr *shp, const char *name, size_t *idx);
Dsymbol-elf.c200 GElf_Shdr *shp, const char *name, size_t *idx) in elf_section_by_name() argument
212 gelf_getshdr(sec, shp); in elf_section_by_name()
213 str = elf_strptr(elf, ep->e_shstrndx, shp->sh_name); in elf_section_by_name()
/linux-6.6.21/security/selinux/
Dhooks.c6121 static int selinux_shm_alloc_security(struct kern_ipc_perm *shp) in selinux_shm_alloc_security() argument
6127 isec = selinux_ipc(shp); in selinux_shm_alloc_security()
6131 ad.u.ipc_id = shp->key; in selinux_shm_alloc_security()
6137 static int selinux_shm_associate(struct kern_ipc_perm *shp, int shmflg) in selinux_shm_associate() argument
6143 isec = selinux_ipc(shp); in selinux_shm_associate()
6146 ad.u.ipc_id = shp->key; in selinux_shm_associate()
6153 static int selinux_shm_shmctl(struct kern_ipc_perm *shp, int cmd) in selinux_shm_shmctl() argument
6182 return ipc_has_perm(shp, perms); in selinux_shm_shmctl()
6185 static int selinux_shm_shmat(struct kern_ipc_perm *shp, in selinux_shm_shmat() argument
6195 return ipc_has_perm(shp, perms); in selinux_shm_shmat()
/linux-6.6.21/Documentation/scsi/
Dscsi_mid_low_api.rst606 * @shp: pointer to scsi host instance to unregister.
619 void scsi_unregister(struct Scsi_Host * shp)
803 * @shp: host to supply information about
827 const char * info(struct Scsi_Host * shp)
/linux-6.6.21/drivers/scsi/
Dscsi_debug.c5851 static const char *scsi_debug_info(struct Scsi_Host *shp) in scsi_debug_info() argument