Lines Matching defs:atom
46 char *a_string; /* String atom */
58 static mutex_t _atom_lock; /* atom table lock */
272 * Initialize pool_value_t atom dictionary
1924 atom_t *atom;
1931 if ((atom = dict_get(_pv_atoms, s)) == NULL) {
1932 if ((atom = calloc(1, sizeof (atom_t))) == NULL) {
1937 if ((atom->a_string = strdup(s)) == NULL) {
1939 free(atom);
1943 (void) dict_put(_pv_atoms, atom->a_string, atom);
1945 atom->a_count++;
1947 return (atom->a_string);
1952 * string. If the reference count reaches zero, then the atom is
1958 atom_t *atom;
1961 if ((atom = dict_get(_pv_atoms, s)) != NULL) {
1962 if (--atom->a_count == 0) {
1964 free(atom->a_string);
1965 free(atom);