Lines Matching defs:id
97 /* length of the used data which contains the id */
118 * structures. The hash table is indexed by SHMCB_MASK(id). Each
159 /* This macro takes a pointer to the header and an id and returns a
161 #define SHMCB_MASK(pHeader, id) \
162 SHMCB_SUBCACHE((pHeader), *(id) & ((pHeader)->subcache_num - 1))
166 #define SHMCB_MASK_DBG(pHeader, id) \
167 *(id), (*(id) & ((pHeader)->subcache_num - 1))
258 const unsigned char *id, unsigned int id_len,
262 const unsigned char *id, unsigned int idlen,
479 server_rec *s, const unsigned char *id,
486 SHMCBSubcache *subcache = SHMCB_MASK(header, id);
491 SHMCB_MASK_DBG(header, id));
494 ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, APLOGNO(00832) "unusably short id provided "
498 tryreplace = shmcb_subcache_remove(s, header, subcache, id, idlen);
500 len_encoded, id, idlen, expiry)) {
518 const unsigned char *id, unsigned int idlen,
523 SHMCBSubcache *subcache = SHMCB_MASK(header, id);
528 SHMCB_MASK_DBG(header, id));
530 /* Get the entry corresponding to the id, if it exists. */
531 rv = shmcb_subcache_retrieve(s, header, subcache, id, idlen,
544 server_rec *s, const unsigned char *id,
548 SHMCBSubcache *subcache = SHMCB_MASK(header, id);
553 SHMCB_MASK_DBG(header, id));
555 ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, APLOGNO(00838) "unusably short id provided "
559 if (shmcb_subcache_remove(s, header, subcache, id, idlen) == 0) {
753 const unsigned char *id, unsigned int id_len,
819 /* Insert the id */
824 id, id_len);
856 const unsigned char *id, unsigned int idlen,
868 /* Only consider 'idx' if the id matches, and the "removed"
878 idx->data_pos, id, idx->id_len) == 0) {
884 /* Find the offset of the data segment, after the id */
919 const unsigned char *id,
929 /* Only consider 'idx' if the id matches, and the "removed"
934 idx->data_pos, id, idx->id_len) == 0) {
978 unsigned char *id = *buf;
983 /* Find the offset of the data segment, after the id */
999 id = *buf;
1005 shmcb_cyclic_cton_memcpy(header->subcache_data_size, id,
1008 id[idx->id_len] = '\0';
1015 rv = iterator(instance, s, userctx, id, idx->id_len,