taglinefilesource code
upd99net/unix.cstruct unix_proto_data *upd;
upd101net/unix.cfor (upd = unix_datas; upd <= last_unix_data; ++upd) {
upd102net/unix.cif (upd->refcnt && upd->socket &&
upd103net/unix.cupd->sockaddr_len == sockaddr_len &&
upd104net/unix.cmemcmp(&upd->sockaddr_un, sockun, sockaddr_len) == 0)
upd105net/unix.creturn upd;
upd113net/unix.cstruct unix_proto_data *upd;
upd116net/unix.cfor (upd = unix_datas; upd <= last_unix_data; ++upd) {
upd117net/unix.cif (!upd->refcnt) {
upd118net/unix.cupd->refcnt = 1;
upd120net/unix.cupd->socket = NULL;
upd121net/unix.cupd->sockaddr_len = 0;
upd122net/unix.cupd->buf = NULL;
upd123net/unix.cupd->bp_head = upd->bp_tail = 0;
upd124net/unix.cupd->inode = NULL;
upd125net/unix.cupd->peerupd = NULL;
upd126net/unix.creturn upd;
upd134net/unix.cunix_data_ref(struct unix_proto_data *upd)
upd136net/unix.c++upd->refcnt;
upd137net/unix.cPRINTK("unix_data_ref: refing data 0x%x (%d)\n", upd, upd->refcnt);
upd141net/unix.cunix_data_deref(struct unix_proto_data *upd)
upd143net/unix.cif (upd->refcnt == 1) {
upd144net/unix.cPRINTK("unix_data_deref: releasing data 0x%x\n", upd);
upd145net/unix.cif (upd->buf) {
upd146net/unix.cfree_page((unsigned long)upd->buf);
upd147net/unix.cupd->buf = NULL;
upd148net/unix.cupd->bp_head = upd->bp_tail = 0;
upd151net/unix.c--upd->refcnt;
upd161net/unix.cstruct unix_proto_data *upd;
upd168net/unix.cif (!(upd = unix_data_alloc())) {
upd172net/unix.cif (!(upd->buf = (char *)get_free_page())) {
upd174net/unix.cunix_data_deref(upd);
upd177net/unix.cupd->protocol = protocol;
upd178net/unix.cupd->socket = sock;
upd179net/unix.cUN_DATA(sock) = upd;
upd180net/unix.cPRINTK("unix_proto_create: allocated data 0x%x\n", upd);
upd187net/unix.cstruct unix_proto_data *upd = UN_DATA(oldsock);
upd189net/unix.creturn unix_proto_create(newsock, upd->protocol);
upd195net/unix.cstruct unix_proto_data *upd = UN_DATA(sock);
upd198net/unix.csock, upd);
upd199net/unix.cif (!upd)
upd201net/unix.cif (upd->socket != sock) {
upd205net/unix.cif (upd->inode) {
upd207net/unix.cupd->inode);
upd208net/unix.ciput(upd->inode);
upd209net/unix.cupd->inode = NULL;
upd212net/unix.cupd->socket = NULL;
upd213net/unix.cif (upd->peerupd)
upd214net/unix.cunix_data_deref(upd->peerupd);
upd215net/unix.cunix_data_deref(upd);
upd232net/unix.cstruct unix_proto_data *upd = UN_DATA(sock);
upd245net/unix.cif (upd->sockaddr_len || upd->inode) {
upd250net/unix.cmemcpy_fromfs(&upd->sockaddr_un, umyaddr, sockaddr_len);
upd251net/unix.cif (upd->sockaddr_un.sun_family != AF_UNIX) {
upd253net/unix.cupd->sockaddr_un.sun_family, AF_UNIX);
upd264net/unix.cmemcpy(fname, upd->sockaddr_un.sun_path, sockaddr_len-UN_PATH_OFFSET);
upd273net/unix.ci = open_namei(fname, 0, S_IFSOCK, &upd->inode);
upd280net/unix.cupd->sockaddr_len = sockaddr_len;  /* now its legal */
upd283net/unix.csockaddr_un_printk(&upd->sockaddr_un, upd->sockaddr_len);
upd365net/unix.cstruct unix_proto_data *upd;
upd375net/unix.cupd = UN_DATA(sock->conn);
upd378net/unix.cupd = UN_DATA(sock);
upd382net/unix.cif (len > upd->sockaddr_len)
upd383net/unix.clen = upd->sockaddr_len;
upd386net/unix.cmemcpy_tofs(usockaddr, &upd->sockaddr_un, len);
upd398net/unix.cstruct unix_proto_data *upd;
upd403net/unix.cupd = UN_DATA(sock);
upd404net/unix.cwhile (!(avail = UN_BUF_AVAIL(upd))) {
upd438net/unix.cif (cando > (part = BUF_SIZE - upd->bp_tail))
upd443net/unix.cmemcpy_tofs(ubuf, upd->buf + upd->bp_tail, cando);
upd444net/unix.cupd->bp_tail = (upd->bp_tail + cando) & (BUF_SIZE-1);
upd449net/unix.cavail = UN_BUF_AVAIL(upd);
upd535net/unix.cstruct unix_proto_data *upd, *peerupd;
upd538net/unix.cupd = UN_DATA(sock);
upd540net/unix.cUN_BUF_AVAIL(upd) ? "" : " no");
upd541net/unix.cif (UN_BUF_AVAIL(upd))  /* even if disconnected */
upd568net/unix.cstruct unix_proto_data *upd, *peerupd;
upd570net/unix.cupd = UN_DATA(sock);
upd576net/unix.cif (UN_BUF_AVAIL(upd) || peerupd)
upd577net/unix.cput_fs_long(UN_BUF_AVAIL(upd), (unsigned long *)arg);
upd600net/unix.cstruct unix_proto_data *upd;
upd603net/unix.cfor (upd = unix_datas; upd <= last_unix_data; ++upd)
upd604net/unix.cupd->refcnt = 0;